pub trait Readable where
    Self: Sized
{ fn read<R: Reader>(reader: &mut R) -> Result<Self, Error>; }
Expand description

Trait that every type that can be deserialized from binary must implement. Reads directly to a Reader, a utility type thinly wrapping an underlying Read implementation.

Required methods

Reads the data necessary to this Readable from the provided reader

Implementations on Foreign Types

Implementors

Implementation of Readable for a block, defines how to read a full block from a binary stream.

Deserialization of a block header

Deserialization of an untrusted block header

Deserialization of an untrusted block header

Implementation of Readable for a compact block, defines how to read a compact block from a binary stream.

Implementation of Readable for an untrusted compact block, defines how to read a compact block from a binary stream.

Implementation of Readable for a transaction Input, defines how to read an Input from a binary stream.

Implementation of Readable for a transaction Output, defines how to read an Output from a binary stream.

Implementation of Readable for a transaction, defines how to read a full transaction from a binary stream.

Implementation of Readable for a body, defines how to read a body from a binary stream.