Trait darkfi_serial::Decodable
source · pub trait Decodable: Sized {
// Required method
fn decode<D: Read>(d: D) -> Result<Self, Error>;
}
Expand description
Data which can be decoded in a consensus-consistent way.
pub trait Decodable: Sized {
// Required method
fn decode<D: Read>(d: D) -> Result<Self, Error>;
}
Data which can be decoded in a consensus-consistent way.