Struct Bip96

Source
pub struct Bip96;

Trait Implementations§

Source§

impl<N> ChannelExtension<N> for Bip96
where 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 Freeze for Bip96

§

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 T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

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 for T

Source§

type Output = T

Should always be Self
Source§

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

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

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

Source§

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

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

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

Source§

fn vzip(self) -> V