Enum lnp::features::Feature [−][src]
#[non_exhaustive]
#[repr(u16)]
pub enum Feature {
OptionDataLossProtect,
InitialRoutingSync,
OptionUpfrontShutdownScript,
GossipQueries,
VarOnionOptin,
GossipQueriesEx,
OptionStaticRemotekey,
PaymentSecret,
BasicMpp,
OptionSupportLargeChannel,
OptionAnchorOutputs,
}
Expand description
Specific named feature flags
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Requires or supports extra channel_reestablish
fields
Sending node needs a complete routing information dump
Commits to a shutdown scriptpubkey when opening channel
More sophisticated gossip control
Requires/supports variable-length routing onion payloads
Gossip queries can include additional information
Static key for remote output
Node supports payment_secret
field
Node can receive basic multi-part payments
Can create large channels
Anchor outputs
Implementations
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 varianttrue
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
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Feature
impl UnwindSafe for Feature
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self