pub type ChannelTypeFeatures = Features<ChannelTypeContext>;
Expand description
Features used within the channel_type field in an OpenChannel message.
A channel is always of some known “type”, describing the transaction formats used and the exact semantics of our interaction with our peer.
Note that because a channel is a specific type which is proposed by the opener and accepted by the counterparty, only required features are allowed here.
This is serialized differently from other feature types - it is not prefixed by a length, and thus must only appear inside a TLV where its length is known in advance.
Trait Implementations
sourceimpl Readable for ChannelTypeFeatures
impl Readable for ChannelTypeFeatures
sourceimpl Writeable for ChannelTypeFeatures
impl Writeable for ChannelTypeFeatures
sourcefn encode(&self) -> Vec<u8>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
fn encode(&self) -> Vec<u8>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
Writes self out to a Vec
sourcefn serialized_length(&self) -> usize
fn serialized_length(&self) -> usize
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