Trait bitcoin::network::encodable::ConsensusDecodable
[−]
[src]
pub trait ConsensusDecodable<D: SimpleDecoder>: Sized { fn consensus_decode(d: &mut D) -> Result<Self, D::Error>; }
Data which can be encoded in a consensus-consistent way
Required Methods
fn consensus_decode(d: &mut D) -> Result<Self, D::Error>
Decode an object with a well-defined format
Implementors
impl<D: SimpleDecoder> ConsensusDecodable<D> for Network
impl<D: SimpleDecoder> ConsensusDecodable<D> for u8
impl<D: SimpleDecoder> ConsensusDecodable<D> for u16
impl<D: SimpleDecoder> ConsensusDecodable<D> for u32
impl<D: SimpleDecoder> ConsensusDecodable<D> for u64
impl<D: SimpleDecoder> ConsensusDecodable<D> for i8
impl<D: SimpleDecoder> ConsensusDecodable<D> for i16
impl<D: SimpleDecoder> ConsensusDecodable<D> for i32
impl<D: SimpleDecoder> ConsensusDecodable<D> for i64
impl<D: SimpleDecoder> ConsensusDecodable<D> for VarInt
impl<D: SimpleDecoder> ConsensusDecodable<D> for bool
impl<D: SimpleDecoder> ConsensusDecodable<D> for String
impl<D: SimpleDecoder, T: ConsensusDecodable<D> + Copy> ConsensusDecodable<D> for [T; 2]
impl<D: SimpleDecoder, T: ConsensusDecodable<D> + Copy> ConsensusDecodable<D> for [T; 4]
impl<D: SimpleDecoder, T: ConsensusDecodable<D> + Copy> ConsensusDecodable<D> for [T; 8]
impl<D: SimpleDecoder, T: ConsensusDecodable<D> + Copy> ConsensusDecodable<D> for [T; 12]
impl<D: SimpleDecoder, T: ConsensusDecodable<D> + Copy> ConsensusDecodable<D> for [T; 16]
impl<D: SimpleDecoder, T: ConsensusDecodable<D> + Copy> ConsensusDecodable<D> for [T; 32]
impl<D: SimpleDecoder, T: ConsensusDecodable<D>> ConsensusDecodable<D> for Vec<T>
impl<D: SimpleDecoder, T: ConsensusDecodable<D>> ConsensusDecodable<D> for Box<[T]>
impl<D: SimpleDecoder, T: ConsensusDecodable<D>> ConsensusDecodable<D> for Option<T>
impl<D: SimpleDecoder> ConsensusDecodable<D> for CheckedData
impl<D: SimpleDecoder, T0: ConsensusDecodable<D>, T1: ConsensusDecodable<D>> ConsensusDecodable<D> for (T0, T1)
impl<D: SimpleDecoder, T0: ConsensusDecodable<D>, T1: ConsensusDecodable<D>, T2: ConsensusDecodable<D>, T3: ConsensusDecodable<D>> ConsensusDecodable<D> for (T0, T1, T2, T3)
impl<D: SimpleDecoder, T0: ConsensusDecodable<D>, T1: ConsensusDecodable<D>, T2: ConsensusDecodable<D>, T3: ConsensusDecodable<D>, T4: ConsensusDecodable<D>, T5: ConsensusDecodable<D>> ConsensusDecodable<D> for (T0, T1, T2, T3, T4, T5)
impl<D: SimpleDecoder, T0: ConsensusDecodable<D>, T1: ConsensusDecodable<D>, T2: ConsensusDecodable<D>, T3: ConsensusDecodable<D>, T4: ConsensusDecodable<D>, T5: ConsensusDecodable<D>, T6: ConsensusDecodable<D>, T7: ConsensusDecodable<D>> ConsensusDecodable<D> for (T0, T1, T2, T3, T4, T5, T6, T7)
impl<D: SimpleDecoder, T: ConsensusDecodable<D>> ConsensusDecodable<D> for Box<T>
impl<D, K, V> ConsensusDecodable<D> for HashMap<K, V> where D: SimpleDecoder, K: ConsensusDecodable<D> + Eq + Hash, V: ConsensusDecodable<D>
impl<D: SimpleDecoder> ConsensusDecodable<D> for Address
impl<D: SimpleDecoder> ConsensusDecodable<D> for CommandString
impl<D: SimpleDecoder<Error=Error>> ConsensusDecodable<D> for RawNetworkMessage
impl<D: SimpleDecoder> ConsensusDecodable<D> for GetBlocksMessage
impl<D: SimpleDecoder> ConsensusDecodable<D> for GetHeadersMessage
impl<D: SimpleDecoder> ConsensusDecodable<D> for Inventory
impl<D: SimpleDecoder> ConsensusDecodable<D> for VersionMessage
impl<D: SimpleDecoder> ConsensusDecodable<D> for All
impl<D: SimpleDecoder> ConsensusDecodable<D> for Script
impl<D: SimpleDecoder> ConsensusDecodable<D> for TxIn
impl<D: SimpleDecoder> ConsensusDecodable<D> for TxOut
impl<D: SimpleDecoder> ConsensusDecodable<D> for Transaction
impl<D: SimpleDecoder> ConsensusDecodable<D> for BlockHeader
impl<D: SimpleDecoder> ConsensusDecodable<D> for Block
impl<D: SimpleDecoder> ConsensusDecodable<D> for LoneBlockHeader
impl<D: SimpleDecoder> ConsensusDecodable<D> for BlockchainNode
impl<D: SimpleDecoder> ConsensusDecodable<D> for Blockchain
impl<D: SimpleDecoder> ConsensusDecodable<D> for Hash32
impl<D: SimpleDecoder> ConsensusDecodable<D> for Hash48
impl<D: SimpleDecoder> ConsensusDecodable<D> for Hash64
impl<D: SimpleDecoder> ConsensusDecodable<D> for Sha256dHash
impl<D, K, V> ConsensusDecodable<D> for PatriciaTree<K, V> where D: SimpleDecoder, K: Copy + ConsensusDecodable<D>, V: ConsensusDecodable<D>
impl<D: SimpleDecoder> ConsensusDecodable<D> for Uint256
impl<D: SimpleDecoder> ConsensusDecodable<D> for Uint128