[][src]Struct tokio_codec::BytesCodec

pub struct BytesCodec(_);

A simple Codec implementation that just ships bytes around.

Methods

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 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 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 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

Auto Trait Implementations

impl Send for BytesCodec

impl Sync for BytesCodec

impl Unpin for BytesCodec

impl UnwindSafe for BytesCodec

impl RefUnwindSafe for BytesCodec

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]