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

An IAC command sequence.

Tuple Fields of IAC

0: TelnetIAC
Negotiation(TelnetNegotiation)

An IAC negotiation sequence.

Tuple Fields of Negotiation

0: TelnetNegotiation
Subnegotiation(TelnetSubnegotiation)

An IAC subnegotiation sequence.

Tuple Fields of Subnegotiation

0: TelnetSubnegotiation
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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Performs the conversion.

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 resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.