Trait breez_sdk_core::lightning::util::ser::Writeable
pub trait Writeable {
// Required method
fn write<W>(&self, writer: &mut W) -> Result<(), Error>
where W: Writer;
// Provided methods
fn encode(&self) -> Vec<u8> ⓘ { ... }
fn serialized_length(&self) -> usize { ... }
}
Expand description
A trait that various LDK types implement allowing them to be written out to a Writer
.
This is not exported to bindings users as we only export serialization to/from byte arrays instead
Required Methods§
Provided Methods§
fn serialized_length(&self) -> usize
fn serialized_length(&self) -> usize
Gets the length of this object after it has been serialized. This can be overridden to optimize cases where we prepend an object with its length.
Object Safety§
This trait is not object safe.
Implementations on Foreign Types§
§impl Writeable for Vec<&BlindedTail>
impl Writeable for Vec<&BlindedTail>
§impl Writeable for Vec<ChannelMonitorUpdate>
impl Writeable for Vec<ChannelMonitorUpdate>
§impl Writeable for Duration
impl Writeable for Duration
This is not exported to bindings users as Duration
s are simply mapped as ints.