Struct http_codec::client::HttpCodec [−][src]
pub struct HttpCodec { /* fields omitted */ }Methods
impl HttpCodec[src]
impl HttpCodecTrait Implementations
impl Debug for HttpCodec[src]
impl Debug for HttpCodecfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Encoder for HttpCodec[src]
impl Encoder for HttpCodectype Item = Request<Bytes>
The type of items consumed by the Encoder
type Error = Error
The type of encoding errors. Read more
fn encode(&mut self, item: Request<Bytes>, dst: &mut BytesMut) -> Result<()>[src]
fn encode(&mut self, item: Request<Bytes>, dst: &mut BytesMut) -> Result<()>Encodes a frame into the buffer provided. Read more
impl Decoder for HttpCodec[src]
impl Decoder for HttpCodectype Item = Response<Bytes>
The type of decoded frames.
type Error = Error
The type of unrecoverable frame decoding errors. Read more
fn decode(&mut self, src: &mut BytesMut) -> Result<Option<Response<Bytes>>>[src]
fn decode(&mut self, src: &mut BytesMut) -> Result<Option<Response<Bytes>>>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