Struct libtelnet_rs::compatibility::CompatibilityTable[][src]

pub struct CompatibilityTable { /* fields omitted */ }
Expand description

A table of options that are supported locally or remotely, and their current state.

Implementations

Option is locally supported.

Option is remotely supported.

Option is currently enabled locally.

Option is currently enabled remotely.

Create a table with some option values set.

Arguments

values - A slice of (u8, u8) tuples. The first value is the option code, and the second is the bitmask value for that option.

Notes

An option bitmask can be generated using the CompatibilityEntry struct, using entry.into_u8().

Enable local support for an option.

Enable remote support for an option.

Enable both remote and local support for an option.

Retrieve a CompatbilityEntry generated from the current state of the option value.

Set an option value by getting the bitmask from a CompatibilityEntry.

Reset all negotiated states

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Returns the “default value” for a type. 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 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.