pub trait ArrayEncode {
const ARRAY_CONSTRUCTOR: Constructor;
// Required methods
fn array_encoded_size(&self) -> usize;
fn array_encode(&self, buf: &mut BytesMut);
}
Expand description
Defines routines to encode the type as an element of an AMQP array. It’s different from Encode in that it omits the type constructor (format code or described type definition) when encoding.
Required Associated Constants§
Required Methods§
Sourcefn array_encoded_size(&self) -> usize
fn array_encoded_size(&self) -> usize
Returns the size of the type when encoded as an element of an AMQP array.
Sourcefn array_encode(&self, buf: &mut BytesMut)
fn array_encode(&self, buf: &mut BytesMut)
Encodes the type as an element of an AMQP array.
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.