Enum lnp::features::Feature[][src]

#[non_exhaustive]
#[repr(u16)]pub enum Feature {
    OptionDataLossProtect,
    InitialRoutingSync,
    OptionUpfrontShutdownScript,
    GossipQueries,
    VarOnionOptin,
    GossipQueriesEx,
    OptionStaticRemotekey,
    PaymentSecret,
    BasicMpp,
    OptionSupportLargeChannel,
    OptionAnchorOutputs,
}

Specific named feature flags

Variants (Non-exhaustive)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
OptionDataLossProtect

Requires or supports extra channel_reestablish fields

InitialRoutingSync

Sending node needs a complete routing information dump

OptionUpfrontShutdownScript

Commits to a shutdown scriptpubkey when opening channel

GossipQueries

More sophisticated gossip control

VarOnionOptin

Requires/supports variable-length routing onion payloads

GossipQueriesEx

Gossip queries can include additional information

OptionStaticRemotekey

Static key for remote output

PaymentSecret

Node supports payment_secret field

BasicMpp

Node can receive basic multi-part payments

OptionSupportLargeChannel

Can create large channels

OptionAnchorOutputs

Anchor outputs

Implementations

impl Feature[src]

pub fn bit(self, required: bool) -> Option<u16>[src]

Returns number of bit that is set by the flag

Arguments

required: which type of flag bit should be returned:

  • false for even (non-required) bit variant
  • true for odd (required) bit variant

Returns

Bit number in feature verctor if the feature is allowed for the provided required condition; None otherwise.

Trait Implementations

impl Clone for Feature[src]

impl Copy for Feature[src]

impl Debug for Feature[src]

impl Display for Feature[src]

impl Eq for Feature[src]

impl FromStr for Feature[src]

type Err = UnknownFeatureError

The associated error which can be returned from parsing.

impl Hash for Feature[src]

impl Ord for Feature[src]

impl PartialEq<Feature> for Feature[src]

impl PartialOrd<Feature> for Feature[src]

impl StructuralEq for Feature[src]

impl StructuralPartialEq for Feature[src]

Auto Trait Implementations

impl RefUnwindSafe for Feature

impl Send for Feature

impl Sync for Feature

impl Unpin for Feature

impl UnwindSafe for Feature

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>,