Trait rlp::Decodable

source ·
pub trait Decodable: Sized {
    // Required method
    fn decode(rlp: &Rlp<'_>) -> Result<Self, DecoderError>;
}
Expand description

RLP decodable trait

Required Methods§

source

fn decode(rlp: &Rlp<'_>) -> Result<Self, DecoderError>

Decode a value from RLP bytes

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Decodable for bool

source§

fn decode(rlp: &Rlp<'_>) -> Result<Self, DecoderError>

source§

impl Decodable for u8

source§

fn decode(rlp: &Rlp<'_>) -> Result<Self, DecoderError>

source§

impl Decodable for u16

source§

fn decode(rlp: &Rlp<'_>) -> Result<Self, DecoderError>

source§

impl Decodable for u32

source§

fn decode(rlp: &Rlp<'_>) -> Result<Self, DecoderError>

source§

impl Decodable for u64

source§

fn decode(rlp: &Rlp<'_>) -> Result<Self, DecoderError>

source§

impl Decodable for u128

source§

fn decode(rlp: &Rlp<'_>) -> Result<Self, DecoderError>

source§

impl Decodable for usize

source§

fn decode(rlp: &Rlp<'_>) -> Result<Self, DecoderError>

source§

impl Decodable for Bytes

source§

fn decode(rlp: &Rlp<'_>) -> Result<Self, DecoderError>

source§

impl Decodable for BytesMut

source§

fn decode(rlp: &Rlp<'_>) -> Result<Self, DecoderError>

source§

impl Decodable for String

source§

fn decode(rlp: &Rlp<'_>) -> Result<Self, DecoderError>

source§

impl Decodable for Vec<u8>

source§

fn decode(rlp: &Rlp<'_>) -> Result<Self, DecoderError>

source§

impl<T> Decodable for Option<T>
where T: Decodable,

source§

fn decode(rlp: &Rlp<'_>) -> Result<Self, DecoderError>

source§

impl<T: Decodable> Decodable for Box<T>

source§

fn decode(rlp: &Rlp<'_>) -> Result<Self, DecoderError>

Implementors§