pub struct TelnetNegotiation {
pub command: u8,
pub option: u8,
}Expand description
A struct representing a 3‑byte IAC <command> <option> negotiation.
Fields§
§command: u8§option: u8Implementations§
Trait Implementations§
Source§impl<'arbitrary> Arbitrary<'arbitrary> for TelnetNegotiation
impl<'arbitrary> Arbitrary<'arbitrary> for TelnetNegotiation
Source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self from the given unstructured data. Read moreSource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self from the entirety of the given
unstructured data. Read moreSource§fn size_hint(depth: usize) -> (usize, Option<usize>)
fn size_hint(depth: usize) -> (usize, Option<usize>)
Get a size hint for how many bytes out of an
Unstructured this type
needs to construct itself. Read moreSource§fn try_size_hint(
depth: usize,
) -> Result<(usize, Option<usize>), MaxRecursionReached>
fn try_size_hint( depth: usize, ) -> Result<(usize, Option<usize>), MaxRecursionReached>
Get a size hint for how many bytes out of an
Unstructured this type
needs to construct itself. Read moreSource§impl Clone for TelnetNegotiation
impl Clone for TelnetNegotiation
Source§fn clone(&self) -> TelnetNegotiation
fn clone(&self) -> TelnetNegotiation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TelnetNegotiation
impl Debug 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
Source§fn cmp(&self, other: &TelnetNegotiation) -> Ordering
fn cmp(&self, other: &TelnetNegotiation) -> Ordering
1.21.0 · 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
Source§impl PartialEq for TelnetNegotiation
impl PartialEq for TelnetNegotiation
Source§impl PartialOrd for TelnetNegotiation
impl PartialOrd for TelnetNegotiation
impl Copy for TelnetNegotiation
impl Eq 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 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