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 roam_types::Conduit.

Implemented for:

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§

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: MsgFamily, L: Link> IntoConduit for BareConduit<F, L>

BareConduit passes through unchanged.

Source§

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

Available on non-WebAssembly only.

crate::StableConduit passes through unchanged.

Source§

impl<L: Link> IntoConduit for L

Any Link becomes a BareConduit over MessageFamily.