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
Provided Methods
sourcefn encode_with_len(&self) -> Vec<u8>
fn encode_with_len(&self) -> Vec<u8>
Writes self out to a Vec