Type Definition lightning::ln::features::ChannelFeatures

source ·
pub type ChannelFeatures = Features<ChannelContext>;
Expand description

Features used within a channel_announcement message.

Trait Implementations§

source§

impl Readable for ChannelFeatures

source§

fn read<R: Read>(r: &mut R) -> Result<Self, DecodeError>

Reads a Self in from the given Read.
source§

impl Writeable for ChannelFeatures

source§

fn write<W: Writer>(&self, w: &mut W) -> Result<(), Error>

Writes self out to the given Writer.
source§

fn encode(&self) -> Vec<u8>

Writes self out to a Vec<u8>.
source§

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.