Trait 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§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so 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 Duration
impl Readable for Duration
This is not exported to bindings users as Duration
s are simply mapped as ints.