Trait breez_sdk_core::lightning::util::ser::MaybeReadable

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

A trait that various LDK types implement allowing them to (maybe) be read in from a Read.

This is not exported to bindings users as we only export serialization to/from byte arrays instead

Required Methods§

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

Reads a Self in from the given Read.

Object Safety§

This trait is not object safe.

Implementors§