pub trait DecodeBytes<Context>: Sized {
// Required method
fn decode_bytes<D: Decoder<Context = Context, R = BytesReader>>(
decoder: &mut D,
) -> Result<Self, DecodeError>;
}Required Methods§
Sourcefn decode_bytes<D: Decoder<Context = Context, R = BytesReader>>(
decoder: &mut D,
) -> Result<Self, DecodeError>
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.