pub trait IntoConduit {
type Conduit;
// Required method
fn into_conduit(self) -> Self::Conduit;
}Expand description
Converts a value into a roam_types::Conduit.
Implemented for:
- Any
Link→ wraps it in aBareConduitautomatically BareConduit→ identity (pass-through)crate::StableConduit→ identity (pass-through)
This allows crate::session::initiator and crate::session::acceptor
to accept raw links directly, without requiring callers to wrap them in
BareConduit::new() manually.
Required Associated Types§
Required Methods§
Sourcefn into_conduit(self) -> Self::Conduit
fn into_conduit(self) -> Self::Conduit
Convert into a conduit.
Implementors§
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.
type Conduit = BareConduit<F, L>
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.
type Conduit = StableConduit<F, LS>
Source§impl<L: Link> IntoConduit for L
Any Link becomes a BareConduit over MessageFamily.
impl<L: Link> IntoConduit for L
Any Link becomes a BareConduit over MessageFamily.