Skip to main content

IntoConduit

Trait IntoConduit 

Source
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:

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§

Source

type Conduit

The conduit type produced by this conversion.

Required Methods§

Source

fn into_conduit(self) -> Self::Conduit

Convert into a conduit.

Implementors§

Source§

impl<F, L> IntoConduit for BareConduit<F, L>
where F: MsgFamily, L: Link,

BareConduit passes through unchanged.

Source§

impl<F, LS> IntoConduit for StableConduit<F, LS>
where F: MsgFamily, LS: LinkSource,

Available on non-WebAssembly only.

crate::StableConduit passes through unchanged.

Source§

impl<L> IntoConduit for L
where L: Link,

Any Link becomes a BareConduit over MessageFamily.