Struct lapin_futures::transport::AMQPCodec [−][src]
pub struct AMQPCodec { pub frame_max: u32, }
implements tokio-io's Decoder and Encoder
Fields
frame_max: u32
Trait Implementations
impl Decoder for AMQPCodec
[src]
impl Decoder for AMQPCodec
type Item = AMQPFrame
The type of decoded frames.
type Error = Error
The type of unrecoverable frame decoding errors. Read more
fn decode(&mut self, buf: &mut BytesMut) -> Result<Option<AMQPFrame>, Error>
[src]
fn decode(&mut self, buf: &mut BytesMut) -> Result<Option<AMQPFrame>, Error>
Attempts to decode a frame from the provided buffer of bytes. Read more
fn decode_eof(
&mut self,
buf: &mut BytesMut
) -> Result<Option<Self::Item>, Self::Error>
[src]
fn decode_eof(
&mut self,
buf: &mut BytesMut
) -> Result<Option<Self::Item>, Self::Error>
A default method available to be called when there are no more bytes available to be read from the underlying I/O. Read more
fn framed<T>(self, io: T) -> Framed<T, Self> where
Self: Encoder,
T: AsyncRead + AsyncWrite,
[src]
fn framed<T>(self, io: T) -> Framed<T, Self> where
Self: Encoder,
T: AsyncRead + AsyncWrite,
Provides a Stream
and Sink
interface for reading and writing to this Io
object, using Decode
and Encode
to read and write the raw data. Read more
impl Encoder for AMQPCodec
[src]
impl Encoder for AMQPCodec