pub trait Readable<R>where
Self: Sized,
R: Read,{
fn read(reader: &mut R) -> Result<Self, DecodeError>;
}
Expand description
A trait that various rust-lightning types implement allowing them to be read in from a Read
Required Methods
sourcefn read(reader: &mut R) -> Result<Self, DecodeError>
fn read(reader: &mut R) -> Result<Self, DecodeError>
Reads a Self in from the given Read