pub struct MemoryLink { /* private fields */ }Expand description
In-process Link backed by tokio mpsc channels.
Each direction is an unbounded channel carrying raw bytes (and, on Unix,
any Fds travelling with them) — no serialization, no IO. Useful for
testing Conduits, Session, and anything above the transport layer
without real networking.
Trait Implementations§
Source§impl Link for MemoryLink
impl Link for MemoryLink
type Tx = MemoryLinkTx
type Rx = MemoryLinkRx
fn split(self) -> (Self::Tx, Self::Rx)
Source§fn supports_transport_mode(mode: TransportMode) -> boolwhere
Self: Sized,
fn supports_transport_mode(mode: TransportMode) -> boolwhere
Self: Sized,
Whether this link supports the requested transport mode. Read more
Auto Trait Implementations§
impl Freeze for MemoryLink
impl RefUnwindSafe for MemoryLink
impl Send for MemoryLink
impl Sync for MemoryLink
impl Unpin for MemoryLink
impl UnsafeUnpin for MemoryLink
impl UnwindSafe for MemoryLink
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