[][src]Enum lnpbp::lnp::FeatureContext

pub enum FeatureContext {
    Init,
    NodeAnnouncement,
    ChannelAnnouncement,
    Bolt11Invoice,
}

Some features don't make sense on a per-channels or per-node basis, so each feature defines how it is presented in those contexts. Some features may be required for opening a channel, but not a requirement for use of the channel, so the presentation of those features depends on the feature itself.

Specification

https://github.com/lightningnetwork/lightning-rfc/blob/master/09-features.md#bolt-9-assigned-feature-flags

Variants

Init

I: presented in the init message.

NodeAnnouncement

N: N: presented in the node_announcement messages

ChannelAnnouncement

C: presented in the channel_announcement message.

Bolt11Invoice

9: presented in BOLT 11 invoices.

Trait Implementations

impl Clone for FeatureContext[src]

impl Debug for FeatureContext[src]

impl Display for FeatureContext[src]

impl Eq for FeatureContext[src]

impl Hash for FeatureContext[src]

impl PartialEq<FeatureContext> for FeatureContext[src]

impl StructuralEq for FeatureContext[src]

impl StructuralPartialEq for FeatureContext[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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