pub struct TcpOptionNumber(pub u8);
Expand description
Represents a TCP option.
Tuple Fields§
§0: u8
Implementations§
Source§impl TcpOptionNumber
impl TcpOptionNumber
Sourcepub fn new(value: u8) -> TcpOptionNumber
pub fn new(value: u8) -> TcpOptionNumber
Create a new TcpOptionNumber
instance.
Trait Implementations§
Source§impl Clone for TcpOptionNumber
impl Clone for TcpOptionNumber
Source§fn clone(&self) -> TcpOptionNumber
fn clone(&self) -> TcpOptionNumber
Returns a copy 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 TcpOptionNumber
impl Debug for TcpOptionNumber
Source§impl Hash for TcpOptionNumber
impl Hash for TcpOptionNumber
Source§impl Ord for TcpOptionNumber
impl Ord for TcpOptionNumber
Source§fn cmp(&self, other: &TcpOptionNumber) -> Ordering
fn cmp(&self, other: &TcpOptionNumber) -> 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 TcpOptionNumber
impl PartialEq for TcpOptionNumber
Source§impl PartialOrd for TcpOptionNumber
impl PartialOrd for TcpOptionNumber
Source§impl PrimitiveValues for TcpOptionNumber
impl PrimitiveValues for TcpOptionNumber
impl Copy for TcpOptionNumber
impl Eq for TcpOptionNumber
impl StructuralPartialEq for TcpOptionNumber
Auto Trait Implementations§
impl Freeze for TcpOptionNumber
impl RefUnwindSafe for TcpOptionNumber
impl Send for TcpOptionNumber
impl Sync for TcpOptionNumber
impl Unpin for TcpOptionNumber
impl UnwindSafe for TcpOptionNumber
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