[][src]Trait lightning::util::ser::MaybeReadable

pub trait MaybeReadable where
    Self: Sized
{ fn read<R: Read>(reader: &mut R) -> Result<Option<Self>, DecodeError>; }

A trait that various rust-lightning types implement allowing them to (maybe) be read in from a Read

Required methods

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

Reads a Self in from the given Read

Loading content...

Implementors

impl MaybeReadable for Event[src]

Loading content...