pub trait Writeable {
    fn write<W: Writer>(&self, writer: &mut W) -> Result<(), Error>;
}
Expand description

Trait that every type that can be serialized as binary must implement. Writes directly to a Writer, a utility type thinly wrapping an underlying Write implementation.

Required methods

Write the data held by this Writeable to the provided writer

Implementations on Foreign Types

Implementors

Implementation of Writeable for a block, defines how to write the block to a binary writer. Differentiates between writing the block for the purpose of full serialization and the one of just extracting a hash.

Serialization of a block header

Implementation of Writeable for a compact block, defines how to write the block to a binary writer. Differentiates between writing the block for the purpose of full serialization and the one of just extracting a hash.

Implementation of Writeable for a transaction Input, defines how to write an Input as binary.

Implementation of Writeable for a transaction Output, defines how to write an Output as binary.

Implementation of Writeable for a fully blinded transaction, defines how to write the transaction as binary.

Implementation of Writeable for a body, defines how to write the body as binary.