Struct lnp::channel::Channel [−][src]
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]
N: Nomenclature,
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]
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
Trait Implementations
impl<N> ChannelExtension for Channel<N> where
N: 'static + Nomenclature,
[src]
N: 'static + Nomenclature,
Channel is the extension to itself :) so it receives the same input as any other extension and just forwards it to them
fn channel_state(&self) -> Box<dyn State>
[src]
fn apply(&mut self, tx_graph: &mut TxGraph) -> Result<(), Error>
[src]
impl<N> Extension for Channel<N> where
N: 'static + Nomenclature,
[src]
N: 'static + Nomenclature,
Channel is the extension to itself :) so it receives the same input as any other extension and just forwards it to them
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,