pub struct MemTransport { /* private fields */ }Expand description
One end of an in-memory transport pair.
Trait Implementations§
Source§impl Debug for MemTransport
impl Debug for MemTransport
Source§impl Transport for MemTransport
impl Transport for MemTransport
Source§fn recv<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<Option<Frame>, TransportError>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn recv<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<Option<Frame>, TransportError>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Receive the next frame.
Ok(None) signals a clean end of stream.Auto Trait Implementations§
impl Freeze for MemTransport
impl RefUnwindSafe for MemTransport
impl Send for MemTransport
impl Sync for MemTransport
impl Unpin for MemTransport
impl UnsafeUnpin for MemTransport
impl UnwindSafe for MemTransport
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