Struct lnp::channel::Channel[][src]

pub struct Channel<N> where
    N: Nomenclature
{ /* fields omitted */ }

Channel operates as a three sets of extensions, where each set is applied to construct the transaction graph and the state in a strict order one after other. The order of the extensions within each set is defined by the concrete type implementing extension::Nomenclature marker trait, provided as a type parameter N

Implementations

impl<N> Channel<N> where
    N: Nomenclature
[src]

pub fn with(
    constructor: impl ChannelExtension<Identity = N> + 'static,
    extenders: impl IntoIterator<Item = impl ChannelExtension<Identity = N> + 'static>,
    modifiers: impl IntoIterator<Item = impl ChannelExtension<Identity = N> + 'static>
) -> Self
[src]

Trait Implementations

impl<N> ChannelExtension for Channel<N> where
    N: 'static + Nomenclature
[src]

Channel is the extension to itself :) so it receives the same input as any other extension and just forwards it to them

impl<N> Extension for Channel<N> where
    N: 'static + Nomenclature
[src]

Channel is the extension to itself :) so it receives the same input as any other extension and just forwards it to them

type Identity = N

Auto Trait Implementations

impl<N> !RefUnwindSafe for Channel<N>

impl<N> !Send for Channel<N>

impl<N> !Sync for Channel<N>

impl<N> Unpin for Channel<N>

impl<N> !UnwindSafe for Channel<N>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,