Trait lightning::util::ser::Readable

source ·
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

Reads a Self in from the given Read

Implementations on Foreign Types

Implementors