Trait lightning::util::ser::MaybeReadable
source · pub trait MaybeReadablewhere
Self: Sized,{
// Required method
fn read<R: Read>(reader: &mut R) -> Result<Option<Self>, DecodeError>;
}
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§
Object Safety§
This trait is not object safe.
Implementors§
impl MaybeReadable for MonitorEvent
impl MaybeReadable for ClosureReason
impl MaybeReadable for Event
impl MaybeReadable for HTLCDestination
impl MaybeReadable for PathFailure
impl MaybeReadable for InboundHTLCStateDetails
Available on non-
fuzzing
only.impl MaybeReadable for OutboundHTLCStateDetails
Available on non-
fuzzing
only.