Enum telnet::Event [−][src]
pub enum Event {
Data(Box<[u8]>),
UnknownIAC(u8),
Negotiation(Action, TelnetOption),
Subnegotiation(TelnetOption, Box<[u8]>),
TimedOut,
NoData,
Error(TelnetError),
}
Expand description
Events generated by Telnet
.
Variants
Data received (excluding telnet commands)
UnknownIAC(u8)
An unrecognized telnet command received
Tuple Fields of UnknownIAC
0: u8
Negotiation(Action, TelnetOption)
A telnet negotiation received
Tuple Fields of Negotiation
0: Action
1: TelnetOption
Subnegotiation(TelnetOption, Box<[u8]>)
A telnet subnegotiation data received
Tuple Fields of Subnegotiation
0: TelnetOption
1: Box<[u8]>
Read time out
No data to read
Error(TelnetError)
Error encountered during processing read buffer
Tuple Fields of Error
0: TelnetError