pub struct IpcClient<Crypto, Com, Ses>where
Crypto: CryptoProvider<Com, Ses>,
Com: CommunicationBackend,
Ses: SessionRepository<Session = Crypto::Session>,{
crypto: Crypto,
communication: Com,
sessions: Ses,
}
Fields§
§crypto: Crypto
§communication: Com
§sessions: Ses
Implementations§
Source§impl<Crypto, Com, Ses> IpcClient<Crypto, Com, Ses>where
Crypto: CryptoProvider<Com, Ses>,
Com: CommunicationBackend,
Ses: SessionRepository<Session = Crypto::Session>,
impl<Crypto, Com, Ses> IpcClient<Crypto, Com, Ses>where
Crypto: CryptoProvider<Com, Ses>,
Com: CommunicationBackend,
Ses: SessionRepository<Session = Crypto::Session>,
pub fn new(crypto: Crypto, communication: Com, sessions: Ses) -> Self
pub async fn send( &self, message: OutgoingMessage, ) -> Result<(), SendError<Crypto::SendError, Com::SendError>>
pub async fn receive( &self, ) -> Result<IncomingMessage, ReceiveError<Crypto::ReceiveError, Com::ReceiveError>>
Auto Trait Implementations§
impl<Crypto, Com, Ses> Freeze for IpcClient<Crypto, Com, Ses>
impl<Crypto, Com, Ses> RefUnwindSafe for IpcClient<Crypto, Com, Ses>
impl<Crypto, Com, Ses> Send for IpcClient<Crypto, Com, Ses>
impl<Crypto, Com, Ses> Sync for IpcClient<Crypto, Com, Ses>
impl<Crypto, Com, Ses> Unpin for IpcClient<Crypto, Com, Ses>
impl<Crypto, Com, Ses> UnwindSafe for IpcClient<Crypto, Com, Ses>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more