Trait Decodable

Source
pub trait Decodable {
    type Encoded;
    type Decoded;

    // Required method
    fn decode(encoded: &Self::Encoded) -> Result<Self::Decoded, DecodeError>;
}

Required Associated Types§

Required Methods§

Source

fn decode(encoded: &Self::Encoded) -> Result<Self::Decoded, DecodeError>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Decodable for Message

Source§

impl Decodable for Transaction

Implementors§