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