pub trait Readablewhere
Self: Sized,{
// Required method
fn read<R: Read>(reader: &mut R) -> Result<Self, DecodeError>;
}
Expand description
A trait that various LDK types implement allowing them to 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§
Implementations on Foreign Types§
source§impl Readable for Vec<ChannelMonitorUpdate>
impl Readable for Vec<ChannelMonitorUpdate>
source§impl Readable for Result<NetAddress, u8>
impl Readable for Result<NetAddress, u8>
fn read<R: Read>(reader: &mut R) -> Result<Result<NetAddress, u8>, DecodeError>
source§impl Readable for Vec<BlindedTail>
impl Readable for Vec<BlindedTail>
source§impl Readable for Duration
impl Readable for Duration
This is not exported to bindings users as Duration
s are simply mapped as ints.