Enum telnet::Event[][src]

pub enum Event {
    Data(Box<[u8]>),
    UnknownIAC(u8),
    Negotiation(ActionTelnetOption),
    Subnegotiation(TelnetOptionBox<[u8]>),
    TimedOut,
    NoData,
    Error(TelnetError),
}
Expand description

Events generated by Telnet.

Variants

Data(Box<[u8]>)

Data received (excluding telnet commands)

Tuple Fields of Data

0: Box<[u8]>
UnknownIAC(u8)

An unrecognized telnet command received

Tuple Fields of UnknownIAC

0: u8
Negotiation(ActionTelnetOption)

A telnet negotiation received

Tuple Fields of Negotiation

0: Action1: TelnetOption
Subnegotiation(TelnetOptionBox<[u8]>)

A telnet subnegotiation data received

Tuple Fields of Subnegotiation

0: TelnetOption1: Box<[u8]>
TimedOut

Read time out

NoData

No data to read

Error encountered during processing read buffer

Tuple Fields of Error

0: TelnetError

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.