pub trait Decodewhere
Self: Sized,{
// Required method
fn decode(input: &mut Bytes) -> Result<Self, AmqpParseError>;
}Expand description
Defines routines to decode the type from an encoded AMQP value representation. Decoding must handle parsing the type constructor (format code or described type definition).
Required Methods§
Sourcefn decode(input: &mut Bytes) -> Result<Self, AmqpParseError>
fn decode(input: &mut Bytes) -> Result<Self, AmqpParseError>
Decodes the type from the provided buffer.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".