pub struct LoopbackTransport { /* private fields */ }Expand description
Simplified in-memory transport useful for unit tests and examples.
Implementations§
Trait Implementations§
Source§impl HandshakeTransport for LoopbackTransport
impl HandshakeTransport for LoopbackTransport
fn send<'life0, 'async_trait>(
&'life0 mut self,
msg: HandshakeMessage,
) -> Pin<Box<dyn Future<Output = Result<(), HandshakeError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn recv<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<HandshakeMessage, HandshakeError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl Freeze for LoopbackTransport
impl RefUnwindSafe for LoopbackTransport
impl Send for LoopbackTransport
impl Sync for LoopbackTransport
impl Unpin for LoopbackTransport
impl UnwindSafe for LoopbackTransport
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