Trait lightning::util::ser::Writeable

source ·
pub trait Writeable {
    fn write<W: Writer>(&self, writer: &mut W) -> Result<(), Error>;

    fn encode(&self) -> Vec<u8> { ... }
    fn encode_with_len(&self) -> Vec<u8> { ... }
}
Expand description

A trait that various rust-lightning types implement allowing them to be written out to a Writer

Required Methods

Writes self out to the given Writer

Provided Methods

Writes self out to a Vec

Writes self out to a Vec

Implementations on Foreign Types

Implementors