pub struct StableConduit<F: MsgFamily, LS: LinkSource> { /* private fields */ }Implementations§
Source§impl<F: MsgFamily, LS: LinkSource> StableConduit<F, LS>
impl<F: MsgFamily, LS: LinkSource> StableConduit<F, LS>
pub async fn new(source: LS) -> Result<Self, StableConduitError>
Sourcepub async fn with_first_link(
link_tx: <LS::Link as Link>::Tx,
link_rx: <LS::Link as Link>::Rx,
client_hello: Option<ClientHello>,
source: LS,
) -> Result<Self, StableConduitError>
pub async fn with_first_link( link_tx: <LS::Link as Link>::Tx, link_rx: <LS::Link as Link>::Rx, client_hello: Option<ClientHello>, source: LS, ) -> Result<Self, StableConduitError>
Create a stable conduit with a pre-split first link.
Use this when the first link has already been obtained and processed (e.g. after a CBOR session handshake) before the stable conduit’s own resume handshake runs.
Sourcepub fn with_message_plan(self, plan: MessagePlan) -> Self
pub fn with_message_plan(self, plan: MessagePlan) -> Self
Set the message plan for schema-aware deserialization of the payload inside each frame.
Trait Implementations§
Source§impl<F: MsgFamily, LS> Conduit for StableConduit<F, LS>
impl<F: MsgFamily, LS> Conduit for StableConduit<F, LS>
Source§impl<F: MsgFamily, LS: LinkSource> IntoConduit for StableConduit<F, LS>
Available on non-WebAssembly only.crate::StableConduit passes through unchanged.
impl<F: MsgFamily, LS: LinkSource> IntoConduit for StableConduit<F, LS>
Available on non-WebAssembly only.
crate::StableConduit passes through unchanged.
Source§type Conduit = StableConduit<F, LS>
type Conduit = StableConduit<F, LS>
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, LS> Freeze for StableConduit<F, LS>
impl<F, LS> RefUnwindSafe for StableConduit<F, LS>
impl<F, LS> Send for StableConduit<F, LS>
impl<F, LS> Sync for StableConduit<F, LS>
impl<F, LS> Unpin for StableConduit<F, LS>
impl<F, LS> UnsafeUnpin for StableConduit<F, LS>
impl<F, LS> UnwindSafe for StableConduit<F, LS>
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