pub struct AMQPCodec {
pub frame_max: u32,
}Expand description
implements tokio-io’s Decoder and Encoder
Fields§
§frame_max: u32Trait Implementations§
Source§impl Decoder for AMQPCodec
impl Decoder for AMQPCodec
Source§type Error = CodecError
type Error = CodecError
The type of unrecoverable frame decoding errors. Read more
Source§fn decode(
&mut self,
buf: &mut BytesMut,
) -> Result<Option<AMQPFrame>, CodecError>
fn decode( &mut self, buf: &mut BytesMut, ) -> Result<Option<AMQPFrame>, CodecError>
Attempts to decode a frame from the provided buffer of bytes. Read more
Auto Trait Implementations§
impl Freeze for AMQPCodec
impl RefUnwindSafe for AMQPCodec
impl Send for AMQPCodec
impl Sync for AMQPCodec
impl Unpin for AMQPCodec
impl UnwindSafe for AMQPCodec
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more