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
Available on crate feature
std
only.impl Decodable for Inventory
Available on crate feature
std
only.impl Decodable for BloomFlags
Available on crate feature
std
only.impl Decodable for RejectReason
Available 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
Available on crate feature
std
only.impl Decodable for Address
Available on crate feature
std
only.impl Decodable for ServiceFlags
impl Decodable for CommandString
Available on crate feature
std
only.impl Decodable for RawNetworkMessage
Available on crate feature
std
only.impl Decodable for GetBlocksMessage
Available on crate feature
std
only.impl Decodable for GetHeadersMessage
Available on crate feature
std
only.impl Decodable for FilterAdd
Available on crate feature
std
only.impl Decodable for FilterLoad
Available on crate feature
std
only.impl Decodable for CFCheckpt
Available on crate feature
std
only.impl Decodable for CFHeaders
Available on crate feature
std
only.impl Decodable for CFilter
Available on crate feature
std
only.impl Decodable for GetCFCheckpt
Available on crate feature
std
only.impl Decodable for GetCFHeaders
Available on crate feature
std
only.impl Decodable for GetCFilters
Available on crate feature
std
only.impl Decodable for Reject
Available on crate feature
std
only.impl Decodable for VersionMessage
Available on crate feature
std
only.