Trait lightning::util::ser::MaybeReadable [−][src]
pub trait MaybeReadable where
Self: Sized, { fn read<R: Read>(reader: &mut R) -> Result<Option<Self>, DecodeError>; }
Expand description
A trait that various rust-lightning types implement allowing them to (maybe) be read in from a Read
(C-not exported) as we only export serialization to/from byte arrays instead