Skip to main content

Decode

Trait Decode 

Source
pub trait Decode
where 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§

Source

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".

Implementors§