[][src]Struct tokio_telnet::codec::TelnetCodec

pub struct TelnetCodec { /* fields omitted */ }

Trait Implementations

impl Default for TelnetCodec[src]

impl Decoder for TelnetCodec[src]

type Item = TelnetFrame

The type of decoded frames.

type Error = DecodeError

The type of unrecoverable frame decoding errors. Read more

fn decode(
    &mut self,
    src: &mut BytesMut
) -> Result<Option<Self::Item>, Self::Error>
[src]

Decode incoming data, then take the first Frame

impl Encoder for TelnetCodec[src]

type Item = TelnetFrame

The type of items consumed by the Encoder

type Error = EncodeError

The type of encoding errors. Read more

Auto Trait Implementations

impl Send for TelnetCodec

impl Sync for TelnetCodec

impl Unpin for TelnetCodec

impl UnwindSafe for TelnetCodec

impl RefUnwindSafe for TelnetCodec

Blanket Implementations

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

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

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

type Error = !

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]