pub struct MemoryLink { /* private fields */ }Expand description
In-process Link backed by tokio mpsc channels.
Each direction is an unbounded channel carrying Vec<u8> — raw bytes,
no serialization, no IO. Useful for testing Conduits, Session, and
anything above the transport layer without real networking.
Trait Implementations§
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<L> IntoConduit for Lwhere
L: Link,
impl<L> IntoConduit for Lwhere
L: Link,
Source§type Conduit = BareConduit<MessageFamily, L>
type Conduit = BareConduit<MessageFamily, L>
The conduit type produced by this conversion.
Source§fn into_conduit(self) -> <L as IntoConduit>::Conduit
fn into_conduit(self) -> <L as IntoConduit>::Conduit
Convert into a conduit.