[][src]Trait bitcoin::consensus::encode::Encodable

pub trait Encodable {
    fn consensus_encode<W: Write>(&self, writer: W) -> Result<usize, Error>;
}

Data which can be encoded in a consensus-consistent way

Required methods

fn consensus_encode<W: Write>(&self, writer: W) -> Result<usize, Error>

Encode an object with a well-defined format. Returns the number of bytes written on success.

The only errors returned are errors propagated from the writer.

Loading content...

Implementations on Foreign Types

impl Encodable for u8[src]

impl Encodable for u16[src]

impl Encodable for u32[src]

impl Encodable for u64[src]

impl Encodable for i8[src]

impl Encodable for i16[src]

impl Encodable for i32[src]

impl Encodable for i64[src]

impl Encodable for bool[src]

impl Encodable for String[src]

impl Encodable for Cow<'static, str>[src]

impl Encodable for [u8; 2][src]

impl Encodable for [u8; 4][src]

impl Encodable for [u8; 8][src]

impl Encodable for [u8; 10][src]

impl Encodable for [u8; 12][src]

impl Encodable for [u8; 16][src]

impl Encodable for [u8; 32][src]

impl Encodable for [u8; 33][src]

impl Encodable for [u16; 8][src]

impl Encodable for Vec<BlockHash>[src]

impl Encodable for Vec<FilterHash>[src]

impl Encodable for Vec<FilterHeader>[src]

impl Encodable for Vec<TxMerkleNode>[src]

impl Encodable for Vec<Transaction>[src]

impl Encodable for Vec<TxOut>[src]

impl Encodable for Vec<TxIn>[src]

impl Encodable for Vec<Inventory>[src]

impl Encodable for Vec<Vec<u8>>[src]

impl Encodable for Vec<(u32, Address)>[src]

impl Encodable for Vec<u64>[src]

impl Encodable for Vec<AddrV2Message>[src]

impl Encodable for Vec<u8>[src]

impl Encodable for Box<[u8]>[src]

impl<'a, T: Encodable> Encodable for &'a T[src]

impl<'a, T: Encodable> Encodable for &'a mut T[src]

impl<T: Encodable> Encodable for Rc<T>[src]

impl<T: Encodable> Encodable for Arc<T>[src]

impl<T0: Encodable, T1: Encodable> Encodable for (T0, T1)[src]

impl<T0: Encodable, T1: Encodable, T2: Encodable> Encodable for (T0, T1, T2)[src]

impl<T0: Encodable, T1: Encodable, T2: Encodable, T3: Encodable> Encodable for (T0, T1, T2, T3)[src]

impl<T0: Encodable, T1: Encodable, T2: Encodable, T3: Encodable, T4: Encodable> Encodable for (T0, T1, T2, T3, T4)[src]

impl<T0: Encodable, T1: Encodable, T2: Encodable, T3: Encodable, T4: Encodable, T5: Encodable> Encodable for (T0, T1, T2, T3, T4, T5)[src]

impl<T0: Encodable, T1: Encodable, T2: Encodable, T3: Encodable, T4: Encodable, T5: Encodable, T6: Encodable> Encodable for (T0, T1, T2, T3, T4, T5, T6)[src]

impl<T0: Encodable, T1: Encodable, T2: Encodable, T3: Encodable, T4: Encodable, T5: Encodable, T6: Encodable, T7: Encodable> Encodable for (T0, T1, T2, T3, T4, T5, T6, T7)[src]

impl Encodable for Hash[src]

Loading content...

Implementors

impl Encodable for AddrV2[src]

impl Encodable for Inventory[src]

impl Encodable for RejectReason[src]

impl Encodable for Block[src]

impl Encodable for BlockHeader[src]

impl Encodable for Script[src]

impl Encodable for OutPoint[src]

impl Encodable for Transaction[src]

impl Encodable for TxIn[src]

impl Encodable for TxOut[src]

impl Encodable for CheckedData[src]

impl Encodable for VarInt[src]

impl Encodable for BlockHash[src]

impl Encodable for FilterHash[src]

impl Encodable for FilterHeader[src]

impl Encodable for SigHash[src]

impl Encodable for TxMerkleNode[src]

impl Encodable for Txid[src]

impl Encodable for WitnessMerkleNode[src]

impl Encodable for Wtxid[src]

impl Encodable for AddrV2Message[src]

impl Encodable for Address[src]

impl Encodable for ServiceFlags[src]

impl Encodable for CommandString[src]

impl Encodable for RawNetworkMessage[src]

impl Encodable for GetBlocksMessage[src]

impl Encodable for GetHeadersMessage[src]

impl Encodable for CFCheckpt[src]

impl Encodable for CFHeaders[src]

impl Encodable for CFilter[src]

impl Encodable for GetCFCheckpt[src]

impl Encodable for GetCFHeaders[src]

impl Encodable for GetCFilters[src]

impl Encodable for Reject[src]

impl Encodable for VersionMessage[src]

impl Encodable for MerkleBlock[src]

impl Encodable for PartialMerkleTree[src]

impl Encodable for Key[src]

impl Encodable for Pair[src]

impl Encodable for Global[src]

impl Encodable for Input[src]

impl Encodable for Output[src]

impl Encodable for PartiallySignedTransaction[src]

impl Encodable for Uint128[src]

impl Encodable for Uint256[src]

impl<Subtype> Encodable for ProprietaryKey<Subtype> where
    Subtype: Copy + From<u8> + Into<u8>, 
[src]

Loading content...