Trait breez_sdk_core::lightning::util::ser::Writer

pub trait Writer {
    // Required method
    fn write_all(&mut self, buf: &[u8]) -> Result<(), Error>;
}
Expand description

A simplified version of std::io::Write that exists largely for backwards compatibility. An impl is provided for any type that also impls std::io::Write.

This is not exported to bindings users as we only export serialization to/from byte arrays instead

Required Methods§

fn write_all(&mut self, buf: &[u8]) -> Result<(), Error>

Writes the given buf out. See std::io::Write::write_all for more

Implementations on Foreign Types§

§

impl Writer for VecWriter

§

fn write_all(&mut self, buf: &[u8]) -> Result<(), Error>

Implementors§

§

impl Writer for TestVecWriter

§

impl Writer for LengthCalculatingWriter

§

impl<W> Writer for W
where W: Write,