pub trait IntoConduit {
type Conduit;
// Required method
fn into_conduit(self) -> Self::Conduit;
}Expand description
Converts a value into a vox_types::Conduit.
Implemented for:
- Any
Link→ wraps it in aBareConduitautomatically BareConduit→ identity (pass-through)crate::StableConduit→ identity (pass-through)
This allows crate::Session connection handling methods
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, L> IntoConduit for BareConduit<F, L>
BareConduit passes through unchanged.
impl<F, L> IntoConduit for BareConduit<F, L>
BareConduit passes through unchanged.
type Conduit = BareConduit<F, L>
Source§impl<F, LS> IntoConduit for StableConduit<F, LS>where
F: MsgFamily,
LS: LinkSource,
Available on non-WebAssembly only.crate::StableConduit passes through unchanged.
impl<F, LS> IntoConduit for StableConduit<F, LS>where
F: MsgFamily,
LS: LinkSource,
Available on non-WebAssembly only.
crate::StableConduit passes through unchanged.
type Conduit = StableConduit<F, LS>
Source§impl<L> IntoConduit for Lwhere
L: Link,
Any Link becomes a BareConduit over MessageFamily.
impl<L> IntoConduit for Lwhere
L: Link,
Any Link becomes a BareConduit over MessageFamily.