pub trait Encodable {
// Required method
fn consensus_encode<W: Write + ?Sized>(
&self,
writer: &mut W
) -> Result<usize, Error>;
}
Expand description
Data which can be encoded in a consensus-consistent way.
Required Methods§
Implementations on Foreign Types§
source§impl<T0: Encodable, T1: Encodable, T2: Encodable, T3: Encodable> Encodable for (T0, T1, T2, T3)
impl<T0: Encodable, T1: Encodable, T2: Encodable, T3: Encodable> Encodable for (T0, T1, T2, T3)
source§impl<T0: Encodable, T1: Encodable, T2: Encodable, T3: Encodable, T4: Encodable, T5: Encodable> Encodable for (T0, T1, T2, T3, T4, T5)
impl<T0: Encodable, T1: Encodable, T2: Encodable, T3: Encodable, T4: Encodable, T5: Encodable> Encodable for (T0, T1, T2, T3, T4, T5)
source§impl Encodable for Vec<TapLeafHash>
impl Encodable for Vec<TapLeafHash>
source§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)
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)
source§impl<T0: Encodable, T1: Encodable, T2: Encodable, T3: Encodable, T4: Encodable> Encodable for (T0, T1, T2, T3, T4)
impl<T0: Encodable, T1: Encodable, T2: Encodable, T3: Encodable, T4: Encodable> Encodable for (T0, T1, T2, T3, T4)
source§impl Encodable for Vec<TxMerkleNode>
impl Encodable for Vec<TxMerkleNode>
source§impl Encodable for Vec<FilterHeader>
impl Encodable for Vec<FilterHeader>
source§impl Encodable for Vec<Transaction>
impl Encodable for Vec<Transaction>
source§impl<T0: Encodable, T1: Encodable, T2: Encodable, T3: Encodable, T4: Encodable, T5: Encodable, T6: Encodable> Encodable for (T0, T1, T2, T3, T4, T5, T6)
impl<T0: Encodable, T1: Encodable, T2: Encodable, T3: Encodable, T4: Encodable, T5: Encodable, T6: Encodable> Encodable for (T0, T1, T2, T3, T4, T5, T6)
source§impl Encodable for Vec<AddrV2Message>
impl Encodable for Vec<AddrV2Message>
source§impl Encodable for Vec<FilterHash>
impl Encodable for Vec<FilterHash>
source§impl Encodable for Vec<PrefilledTransaction>
impl Encodable for Vec<PrefilledTransaction>
source§impl<T: Encodable> Encodable for Arc<T>
impl<T: Encodable> Encodable for Arc<T>
Note: This will fail to compile on old Rust for targets that don’t support atomics