pub struct TelnetNegotiation {
pub command: u8,
pub option: u8,
}Expand description
A struct representing a 3 byte IAC sequence.
Fields§
§command: u8§option: u8Implementations§
Trait Implementations§
Source§impl Clone for TelnetNegotiation
impl Clone for TelnetNegotiation
impl Copy for TelnetNegotiation
Source§impl Debug for TelnetNegotiation
impl Debug for TelnetNegotiation
impl Eq for TelnetNegotiation
Source§impl From<TelnetNegotiation> for TelnetEvents
impl From<TelnetNegotiation> for TelnetEvents
Source§fn from(neg: TelnetNegotiation) -> Self
fn from(neg: TelnetNegotiation) -> Self
Converts to this type from the input type.
Source§impl Hash for TelnetNegotiation
impl Hash for TelnetNegotiation
Source§impl Into<Bytes> for TelnetNegotiation
impl Into<Bytes> for TelnetNegotiation
Source§impl Ord for TelnetNegotiation
impl Ord for TelnetNegotiation
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for TelnetNegotiation
impl PartialEq for TelnetNegotiation
Source§impl PartialOrd for TelnetNegotiation
impl PartialOrd for TelnetNegotiation
impl StructuralPartialEq for TelnetNegotiation
Auto Trait Implementations§
impl Freeze for TelnetNegotiation
impl RefUnwindSafe for TelnetNegotiation
impl Send for TelnetNegotiation
impl Sync for TelnetNegotiation
impl Unpin for TelnetNegotiation
impl UnsafeUnpin for TelnetNegotiation
impl UnwindSafe for TelnetNegotiation
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more