[][src]Trait lnpbp::lnp::application::extension::ChannelExtension

pub trait ChannelExtension: Extension {
    fn channel_state(&self) -> Box<dyn State>;
fn apply(&mut self, tx_graph: &mut TxGraph) -> Result<(), Error>; }

Required methods

fn channel_state(&self) -> Box<dyn State>

Returns channel state for persistence & backups.

These are channel-specific data generated from channel operations, including client-validated data

fn apply(&mut self, tx_graph: &mut TxGraph) -> Result<(), Error>

Applies state to the channel transaction graph

Loading content...

Implementors

impl ChannelExtension for Bip96[src]

impl ChannelExtension for Bolt3[src]

impl ChannelExtension for Htlc[src]

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

Loading content...