Trait breez_sdk_liquid::lightning::util::ser::Readable
pub trait Readable: Sized {
// Required method
fn read<R>(reader: &mut R) -> Result<Self, DecodeError>
where R: Read;
}
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§
Object Safety§
This trait is not object safe.
Implementations on Foreign Types§
§impl Readable for Result<SocketAddress, u8>
impl Readable for Result<SocketAddress, u8>
fn read<R>(reader: &mut R) -> Result<Result<SocketAddress, u8>, DecodeError>where
R: Read,
§impl Readable for Vec<ChannelMonitorUpdate>
impl Readable for Vec<ChannelMonitorUpdate>
fn read<R>(r: &mut R) -> Result<Vec<ChannelMonitorUpdate>, DecodeError>where
R: Read,
§impl Readable for Vec<BlindedTail>
impl Readable for Vec<BlindedTail>
fn read<R>(r: &mut R) -> Result<Vec<BlindedTail>, DecodeError>where
R: Read,
§impl Readable for Duration
impl Readable for Duration
This is not exported to bindings users as Duration
s are simply mapped as ints.