pub trait Decodable: Sized {
fn consensus_decode<D: Read>(d: D) -> Result<Self, Error>;
}
Expand description
Data which can be encoded in a consensus-consistent way
Required methods
fn consensus_decode<D: Read>(d: D) -> Result<Self, Error>
fn consensus_decode<D: Read>(d: D) -> Result<Self, Error>
Decode an object with a well-defined format
Implementations on Foreign Types
sourceimpl Decodable for Vec<BlockHash>
impl Decodable for Vec<BlockHash>
fn consensus_decode<D: Read>(d: D) -> Result<Self, Error>
sourceimpl Decodable for Vec<FilterHash>
impl Decodable for Vec<FilterHash>
fn consensus_decode<D: Read>(d: D) -> Result<Self, Error>
sourceimpl Decodable for Vec<FilterHeader>
impl Decodable for Vec<FilterHeader>
fn consensus_decode<D: Read>(d: D) -> Result<Self, Error>
sourceimpl Decodable for Vec<TxMerkleNode>
impl Decodable for Vec<TxMerkleNode>
fn consensus_decode<D: Read>(d: D) -> Result<Self, Error>
sourceimpl Decodable for Vec<Transaction>
impl Decodable for Vec<Transaction>
fn consensus_decode<D: Read>(d: D) -> Result<Self, Error>
sourceimpl Decodable for Vec<Vec<u8>>
impl Decodable for Vec<Vec<u8>>
fn consensus_decode<D: Read>(d: D) -> Result<Self, Error>
sourceimpl Decodable for Vec<TapLeafHash>
impl Decodable for Vec<TapLeafHash>
fn consensus_decode<D: Read>(d: D) -> Result<Self, Error>
sourceimpl Decodable for Vec<Inventory>
impl Decodable for Vec<Inventory>
fn consensus_decode<D: Read>(d: D) -> Result<Self, Error>
sourceimpl Decodable for Vec<(u32, Address)>
impl Decodable for Vec<(u32, Address)>
fn consensus_decode<D: Read>(d: D) -> Result<Self, Error>
sourceimpl Decodable for Vec<AddrV2Message>
impl Decodable for Vec<AddrV2Message>
fn consensus_decode<D: Read>(d: D) -> Result<Self, Error>
sourceimpl<T0: Decodable, T1: Decodable> Decodable for (T0, T1)
impl<T0: Decodable, T1: Decodable> Decodable for (T0, T1)
fn consensus_decode<D: Read>(d: D) -> Result<Self, Error>
sourceimpl<T0: Decodable, T1: Decodable, T2: Decodable> Decodable for (T0, T1, T2)
impl<T0: Decodable, T1: Decodable, T2: Decodable> Decodable for (T0, T1, T2)
fn consensus_decode<D: Read>(d: D) -> Result<Self, Error>
sourceimpl<T0: Decodable, T1: Decodable, T2: Decodable, T3: Decodable> Decodable for (T0, T1, T2, T3)
impl<T0: Decodable, T1: Decodable, T2: Decodable, T3: Decodable> Decodable for (T0, T1, T2, T3)
fn consensus_decode<D: Read>(d: D) -> Result<Self, Error>
sourceimpl<T0: Decodable, T1: Decodable, T2: Decodable, T3: Decodable, T4: Decodable> Decodable for (T0, T1, T2, T3, T4)
impl<T0: Decodable, T1: Decodable, T2: Decodable, T3: Decodable, T4: Decodable> Decodable for (T0, T1, T2, T3, T4)
fn consensus_decode<D: Read>(d: D) -> Result<Self, Error>
sourceimpl<T0: Decodable, T1: Decodable, T2: Decodable, T3: Decodable, T4: Decodable, T5: Decodable> Decodable for (T0, T1, T2, T3, T4, T5)
impl<T0: Decodable, T1: Decodable, T2: Decodable, T3: Decodable, T4: Decodable, T5: Decodable> Decodable for (T0, T1, T2, T3, T4, T5)
fn consensus_decode<D: Read>(d: D) -> Result<Self, Error>
sourceimpl<T0: Decodable, T1: Decodable, T2: Decodable, T3: Decodable, T4: Decodable, T5: Decodable, T6: Decodable> Decodable for (T0, T1, T2, T3, T4, T5, T6)
impl<T0: Decodable, T1: Decodable, T2: Decodable, T3: Decodable, T4: Decodable, T5: Decodable, T6: Decodable> Decodable for (T0, T1, T2, T3, T4, T5, T6)
fn consensus_decode<D: Read>(d: D) -> Result<Self, Error>
sourceimpl<T0: Decodable, T1: Decodable, T2: Decodable, T3: Decodable, T4: Decodable, T5: Decodable, T6: Decodable, T7: Decodable> Decodable for (T0, T1, T2, T3, T4, T5, T6, T7)
impl<T0: Decodable, T1: Decodable, T2: Decodable, T3: Decodable, T4: Decodable, T5: Decodable, T6: Decodable, T7: Decodable> Decodable for (T0, T1, T2, T3, T4, T5, T6, T7)
fn consensus_decode<D: Read>(d: D) -> Result<Self, Error>
Implementors
impl Decodable for AddrV2
This is supported on crate feature
std
only.impl Decodable for Inventory
This is supported on crate feature
std
only.impl Decodable for BloomFlags
This is supported on crate feature
std
only.impl Decodable for RejectReason
This is supported on crate feature
std
only.impl Decodable for Block
impl Decodable for BlockHeader
impl Decodable for Script
impl Decodable for OutPoint
impl Decodable for Transaction
impl Decodable for TxIn
impl Decodable for TxOut
impl Decodable for Witness
impl Decodable for BlockHash
impl Decodable for FilterHash
impl Decodable for FilterHeader
impl Decodable for SigHash
impl Decodable for TxMerkleNode
impl Decodable for Txid
impl Decodable for WitnessMerkleNode
impl Decodable for Wtxid
impl Decodable for AddrV2Message
This is supported on crate feature
std
only.impl Decodable for Address
This is supported on crate feature
std
only.impl Decodable for ServiceFlags
impl Decodable for CommandString
This is supported on crate feature
std
only.impl Decodable for RawNetworkMessage
This is supported on crate feature
std
only.impl Decodable for GetBlocksMessage
This is supported on crate feature
std
only.impl Decodable for GetHeadersMessage
This is supported on crate feature
std
only.impl Decodable for FilterAdd
This is supported on crate feature
std
only.impl Decodable for FilterLoad
This is supported on crate feature
std
only.impl Decodable for CFCheckpt
This is supported on crate feature
std
only.impl Decodable for CFHeaders
This is supported on crate feature
std
only.impl Decodable for CFilter
This is supported on crate feature
std
only.impl Decodable for GetCFCheckpt
This is supported on crate feature
std
only.impl Decodable for GetCFHeaders
This is supported on crate feature
std
only.impl Decodable for GetCFilters
This is supported on crate feature
std
only.impl Decodable for Reject
This is supported on crate feature
std
only.impl Decodable for VersionMessage
This is supported on crate feature
std
only.