Struct lnp::channel::shared_ext::Bip96
source · pub struct Bip96;
Trait Implementations§
source§impl<N> ChannelExtension<N> for Bip96where
Self: Extension<N>,
N: Nomenclature,
N::State: State,
impl<N> ChannelExtension<N> for Bip96where Self: Extension<N>, N: Nomenclature, N::State: State,
source§fn new() -> Box<dyn ChannelExtension<N>>where
Self: Sized,
fn new() -> Box<dyn ChannelExtension<N>>where Self: Sized,
Constructs boxed extension objects which can be inserted into channel
extension pipeline
source§fn build_graph(
&self,
tx_graph: &mut TxGraph<'_>,
_as_remote_node: bool
) -> Result<(), <N as Nomenclature>::Error>
fn build_graph( &self, tx_graph: &mut TxGraph<'_>, _as_remote_node: bool ) -> Result<(), <N as Nomenclature>::Error>
Applies state to the channel transaction graph
source§impl Extension<BoltExt> for Bip96
impl Extension<BoltExt> for Bip96
fn identity(&self) -> BoltExt
source§fn update_from_local(&mut self, _message: &()) -> Result<(), Error>
fn update_from_local(&mut self, _message: &()) -> Result<(), Error>
Updates extension state from some local data
source§fn update_from_peer(&mut self, _: &Messages) -> Result<(), Error>
fn update_from_peer(&mut self, _: &Messages) -> Result<(), Error>
Updates extension state from the data taken from the message received
from the remote peer
fn load_state(&mut self, _state: &ChannelState)
fn store_state(&self, _state: &mut ChannelState)
source§fn state_change(
&mut self,
request: &<N as Nomenclature>::UpdateRequest,
message: &mut <N as Nomenclature>::PeerMessage
) -> Result<(), <N as Nomenclature>::Error>
fn state_change( &mut self, request: &<N as Nomenclature>::UpdateRequest, message: &mut <N as Nomenclature>::PeerMessage ) -> Result<(), <N as Nomenclature>::Error>
Perform a sate change and produce a message which should be communicated
to peers notifying them about the state change