Trait zenith_types::Coder
source · pub trait Coder {
type Tx: Debug + Clone + PartialEq + Eq;
// Required methods
fn encode(t: &Self::Tx) -> Vec<u8> ⓘ;
fn decode(buf: &mut &[u8]) -> Option<Self::Tx>
where Self: Sized;
}Expand description
Encode/Decode trait for inner tx type
Required Associated Types§
Required Methods§
Object Safety§
This trait is not object safe.