[][src]Struct libtelnet_rs::compatibility::CompatibilityEntry

pub struct CompatibilityEntry {
    pub local: bool,
    pub remote: bool,
    pub local_state: bool,
    pub remote_state: bool,
}

An expansion of a bitmask contained in CompatibilityTable.

Fields

local: bool

Whether we support this option from us -> them.

remote: bool

Whether we support this option from them -> us.

local_state: bool

Whether this option is locally enabled.

remote_state: bool

Whether this option is remotely enabled.

Implementations

impl CompatibilityEntry[src]

pub fn new(
    local: bool,
    remote: bool,
    local_state: bool,
    remote_state: bool
) -> Self
[src]

pub fn into_u8(self) -> u8[src]

Creates a u8 bitmask from this entry.

pub fn from(value: u8) -> Self[src]

Expands a u8 bitmask into a CompatibilityEntry.

Trait Implementations

impl Clone for CompatibilityEntry[src]

impl Copy for CompatibilityEntry[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.