Skip to main content

DecodeBytes

Trait DecodeBytes 

Source
pub trait DecodeBytes<Context>: Sized {
    // Required method
    fn decode_bytes<D: Decoder<Context = Context, R = BytesReader>>(
        decoder: &mut D,
    ) -> Result<Self, DecodeError>;
}

Required Methods§

Source

fn decode_bytes<D: Decoder<Context = Context, R = BytesReader>>( decoder: &mut D, ) -> Result<Self, DecodeError>

Attempt to decode this type with the given bincode::Decode.

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<Context> DecodeBytes<Context> for Option<ZeroCopyBytes>

Source§

fn decode_bytes<D>(decoder: &mut D) -> Result<Self, DecodeError>
where D: Decoder<Context = Context, R = BytesReader>,

Implementors§

Source§

impl<Context> DecodeBytes<Context> for RuntimeExecutionOutcomeV1

Source§

impl<Context> DecodeBytes<Context> for RuntimeNewFrameInputV1

Source§

impl<Context> DecodeBytes<Context> for ZeroCopyBytes