Enum libtelnet_rs::events::TelnetEvents [−][src]
pub enum TelnetEvents {
IAC(TelnetIAC),
Negotiation(TelnetNegotiation),
Subnegotiation(TelnetSubnegotiation),
DataReceive(Bytes),
DataSend(Bytes),
DecompressImmediate(Bytes),
}
Expand description
An enum representing various telnet events.
Variants
IAC(TelnetIAC)
An IAC command sequence.
Tuple Fields of IAC
0: TelnetIAC
Negotiation(TelnetNegotiation)
An IAC negotiation sequence.
Tuple Fields of Negotiation
Subnegotiation(TelnetSubnegotiation)
An IAC subnegotiation sequence.
Tuple Fields of Subnegotiation
DataReceive(Bytes)
Regular data received from the remote end.
Tuple Fields of DataReceive
0: Bytes
DataSend(Bytes)
Any data to be sent to the remote end.
Tuple Fields of DataSend
0: Bytes
DecompressImmediate(Bytes)
MCCP2/3 compatibility. MUST DECOMPRESS THIS DATA BEFORE PARSING
Tuple Fields of DecompressImmediate
0: Bytes
Implementations
Helper method to generate a TelnetEvents::DataSend.
Helper method to generate a TelnetEvents::DataReceive.
Helper method to generate a TelnetEvents::IAC.
Helper method to generate a TelnetEvents::Negotiation.
Helper method to generate a TelnetEvents::Subnegotiation.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for TelnetEvents
impl Send for TelnetEvents
impl Sync for TelnetEvents
impl Unpin for TelnetEvents
impl UnwindSafe for TelnetEvents
Blanket Implementations
Mutably borrows from an owned value. Read more