pub trait Readablewhere
Self: Sized,{
// Required method
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§
Object Safety§
Implementations on Foreign Types§
source§impl Readable for BlindingFactor
impl Readable for BlindingFactor
source§impl Readable for Identifier
impl Readable for Identifier
source§impl Readable for Commitment
impl Readable for Commitment
source§impl Readable for RangeProof
impl Readable for RangeProof
Implementors§
impl Readable for KernelFeatures
impl Readable for OutputFeatures
impl Readable for Block
Implementation of Readable for a block, defines how to read a full block from a binary stream.
impl Readable for BlockHeader
Deserialization of a block header
impl Readable for HeaderEntry
impl Readable for HeaderVersion
impl Readable for UntrustedBlock
Deserialization of an untrusted block header
impl Readable for UntrustedBlockHeader
Deserialization of an untrusted block header
impl Readable for BlockSums
impl Readable for CompactBlock
Implementation of Readable for a compact block, defines how to read a compact block from a binary stream.
impl Readable for CompactBlockBody
impl Readable for UntrustedCompactBlock
Implementation of Readable for an untrusted compact block, defines how to read a compact block from a binary stream.
impl Readable for Hash
impl Readable for ShortId
impl Readable for MerkleProof
impl Readable for SegmentIdentifier
impl Readable for SegmentProof
impl Readable for CommitWrapper
impl Readable for FeeFields
impl Readable for Input
Implementation of Readable for a transaction Input, defines how to read an Input from a binary stream.
impl Readable for NRDRelativeHeight
impl Readable for Output
Implementation of Readable for a transaction Output, defines how to read an Output from a binary stream.
impl Readable for OutputIdentifier
impl Readable for Transaction
Implementation of Readable for a transaction, defines how to read a full transaction from a binary stream.
impl Readable for TransactionBody
Implementation of Readable for a body, defines how to read a body from a binary stream.