pub struct BareConduit<F: MsgFamily, L: Link> { /* private fields */ }Expand description
Wraps a Link with postcard serialization. No reconnect, no reliability.
If the link dies, the conduit is dead. For localhost, SHM, or any transport where reconnect isn’t needed.
F is a MsgFamily — it maps lifetimes to concrete message types.
The send path accepts F::Msg<'a> (borrowed data serialized in place
via Peek). The recv path yields SelfRef<F::Msg<'static>> (owned).
Implementations§
Trait Implementations§
Source§impl<F: MsgFamily, L: Link> IntoConduit for BareConduit<F, L>
BareConduit passes through unchanged.
impl<F: MsgFamily, L: Link> IntoConduit for BareConduit<F, L>
BareConduit passes through unchanged.
Source§type Conduit = BareConduit<F, L>
type Conduit = BareConduit<F, L>
The conduit type produced by this conversion.
Source§fn into_conduit(self) -> Self::Conduit
fn into_conduit(self) -> Self::Conduit
Convert into a conduit.
Auto Trait Implementations§
impl<F, L> Freeze for BareConduit<F, L>where
L: Freeze,
impl<F, L> RefUnwindSafe for BareConduit<F, L>where
L: RefUnwindSafe,
impl<F, L> Send for BareConduit<F, L>where
L: Send,
impl<F, L> Sync for BareConduit<F, L>where
L: Sync,
impl<F, L> Unpin for BareConduit<F, L>where
L: Unpin,
impl<F, L> UnsafeUnpin for BareConduit<F, L>where
L: UnsafeUnpin,
impl<F, L> UnwindSafe for BareConduit<F, L>where
L: UnwindSafe,
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