Struct lightning::ln::features::Features [−][src]
pub struct Features<T: Context> { /* fields omitted */ }
Expand description
Tracks the set of features which a node implements, templated by the context in which it appears.
(C-not exported) as we map the concrete feature types below directly instead
Implementations
Set this feature as optional.
Set this feature as required.
Set this feature as optional.
Set this feature as required.
Set this feature as optional.
Set this feature as required.
Set this feature as optional.
Set this feature as required.
Set this feature as optional.
Set this feature as required.
Set this feature as optional.
Set this feature as required.
Set this feature as optional.
Set this feature as required.
Set this feature as optional.
Set this feature as required.
Set this feature as optional.
Set this feature as required.
Set this feature as optional.
Set this feature as required.
Creates a Features with the bits set which are known by the implementation
Create a Features given a set of flags, in little-endian. This is in reverse byte order from most on-the-wire encodings. (C-not exported) as we don’t support export across multiple T
Returns whether the payment_secret
feature is supported.
Trait Implementations
Writes self out to a Vec
Writes self out to a Vec
Gets the length of this object after it has been serialized. This can be overridden to optimize cases where we prepend an object with its length. Read more
Auto Trait Implementations
impl<T> RefUnwindSafe for Features<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for Features<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more