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

pub struct BytesCodec(_);

A simple Codec implementation that just ships bytes around.


impl BytesCodec[src]

pub fn new() -> BytesCodec[src]

Creates a new BytesCodec for shipping around raw bytes.

Trait Implementations

impl Clone for BytesCodec[src]

impl Copy for BytesCodec[src]

impl Debug for BytesCodec[src]

impl Decoder for BytesCodec[src]

type Item = BytesMut

The type of decoded frames.

type Error = Error

The type of unrecoverable frame decoding errors. Read more

impl Default for BytesCodec[src]

impl Encoder for BytesCodec[src]

type Item = Bytes

The type of items consumed by the Encoder

type Error = Error

The type of encoding errors. Read more

impl Eq for BytesCodec[src]

impl Hash for BytesCodec[src]

impl Ord for BytesCodec[src]

impl PartialEq<BytesCodec> for BytesCodec[src]

impl PartialOrd<BytesCodec> for BytesCodec[src]

impl StructuralEq for BytesCodec[src]

impl StructuralPartialEq for BytesCodec[src]

Auto Trait Implementations

impl RefUnwindSafe for BytesCodec

impl Send for BytesCodec

impl Sync for BytesCodec

impl Unpin for BytesCodec

impl UnwindSafe for BytesCodec

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.