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,

source§

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>

Applies state to the channel transaction graph
source§

impl Debug for Bip96

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Bip96

source§

fn default() -> Bip96

Returns the “default value” for a type. Read more
source§

impl Extension<BoltExt> for Bip96

source§

fn identity(&self) -> BoltExt

source§

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>

Updates extension state from the data taken from the message received from the remote peer
source§

fn load_state(&mut self, _state: &ChannelState)

source§

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>

Perform a sate change and produce a message which should be communicated to peers notifying them about the state change

Auto Trait Implementations§

§

impl RefUnwindSafe for Bip96

§

impl Send for Bip96

§

impl Sync for Bip96

§

impl Unpin for Bip96

§

impl UnwindSafe for Bip96

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

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

§

fn vzip(self) -> V