[][src]Struct tokio_util::codec::BytesCodec

pub struct BytesCodec(_);
This is supported on feature="codec" only.

A simple Codec implementation that just ships bytes around.

Methods

impl BytesCodec[src]

pub fn new() -> BytesCodec[src]

This is supported on feature="codec" only.

Creates a new BytesCodec for shipping around raw bytes.

Trait Implementations

impl Decoder for BytesCodec[src]

type Item = BytesMut

This is supported on feature="codec" only.

The type of decoded frames.

type Error = Error

This is supported on feature="codec" only.

The type of unrecoverable frame decoding errors. Read more

impl Encoder for BytesCodec[src]

type Item = Bytes

This is supported on feature="codec" only.

The type of items consumed by the Encoder

type Error = Error

This is supported on feature="codec" only.

The type of encoding errors. Read more

impl Clone for BytesCodec[src]

impl Copy for BytesCodec[src]

impl Default for BytesCodec[src]

impl Eq for BytesCodec[src]

impl Ord for BytesCodec[src]

impl PartialEq<BytesCodec> for BytesCodec[src]

impl PartialOrd<BytesCodec> for BytesCodec[src]

impl Debug for BytesCodec[src]

impl Hash for BytesCodec[src]

impl StructuralPartialEq for BytesCodec[src]

impl StructuralEq for BytesCodec[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]