[−][src]Struct libtelnet_rs::compatibility::CompatibilityEntry
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.
Methods
impl CompatibilityEntry
[src]
pub fn new(
local: bool,
remote: bool,
local_state: bool,
remote_state: bool
) -> Self
[src]
local: bool,
remote: bool,
local_state: bool,
remote_state: bool
) -> Self
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]
fn clone(&self) -> CompatibilityEntry
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for CompatibilityEntry
[src]
Auto Trait Implementations
impl RefUnwindSafe for CompatibilityEntry
impl Send for CompatibilityEntry
impl Sync for CompatibilityEntry
impl Unpin for CompatibilityEntry
impl UnwindSafe for CompatibilityEntry
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,