#[repr(u8)]pub enum Ipv4OptionType {
Show 28 variants
EOL = 0,
NOP = 1,
SEC = 2,
LSR = 3,
TS = 4,
ESEC = 5,
CIPSO = 6,
RR = 7,
SID = 8,
SSR = 9,
ZSU = 10,
MTUP = 11,
MTUR = 12,
FINN = 13,
VISA = 14,
ENCODE = 15,
IMITD = 16,
EIP = 17,
TR = 18,
ADDEXT = 19,
RTRALT = 20,
SDB = 21,
Unassigned = 22,
DPS = 23,
UMP = 24,
QS = 25,
EXP = 30,
Unknown(u8),
}
Expand description
Represents the IPv4 options. http://www.iana.org/assignments/ip-parameters/ip-parameters.xhtml
Variants§
EOL = 0
End of Options List
NOP = 1
No Operation
SEC = 2
Security
LSR = 3
Loose Source Route
TS = 4
Time Stamp
ESEC = 5
Extended Security
CIPSO = 6
Commercial Security
RR = 7
Record Route
SID = 8
Stream ID
SSR = 9
Strict Source Route
ZSU = 10
Experimental Measurement
MTUP = 11
MTU Probe
MTUR = 12
MTU Reply
FINN = 13
Experimental Flow Control
VISA = 14
Experimental Access Control
ENCODE = 15
Encode
IMITD = 16
IMI Traffic Descriptor
EIP = 17
Extended Internet Protocol
TR = 18
Traceroute
ADDEXT = 19
Address Extension
RTRALT = 20
Router Alert
SDB = 21
Selective Directed Broadcast
Unassigned = 22
Unassigned
DPS = 23
Dynamic Packet State
UMP = 24
Upstream Multicast Packet
QS = 25
Quick-Start
EXP = 30
RFC3692-style Experiment
Unknown(u8)
Unknown
Implementations§
Source§impl Ipv4OptionType
impl Ipv4OptionType
Sourcepub fn new(n: u8) -> Ipv4OptionType
pub fn new(n: u8) -> Ipv4OptionType
Constructs a new Ipv4OptionType from u8
Trait Implementations§
Source§impl Clone for Ipv4OptionType
impl Clone for Ipv4OptionType
Source§fn clone(&self) -> Ipv4OptionType
fn clone(&self) -> Ipv4OptionType
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 Ipv4OptionType
impl Debug for Ipv4OptionType
Source§impl Hash for Ipv4OptionType
impl Hash for Ipv4OptionType
Source§impl Ord for Ipv4OptionType
impl Ord for Ipv4OptionType
Source§fn cmp(&self, other: &Ipv4OptionType) -> Ordering
fn cmp(&self, other: &Ipv4OptionType) -> 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 Ipv4OptionType
impl PartialEq for Ipv4OptionType
Source§impl PartialOrd for Ipv4OptionType
impl PartialOrd for Ipv4OptionType
Source§impl PrimitiveValues for Ipv4OptionType
impl PrimitiveValues for Ipv4OptionType
impl Copy for Ipv4OptionType
impl Eq for Ipv4OptionType
impl StructuralPartialEq for Ipv4OptionType
Auto Trait Implementations§
impl Freeze for Ipv4OptionType
impl RefUnwindSafe for Ipv4OptionType
impl Send for Ipv4OptionType
impl Sync for Ipv4OptionType
impl Unpin for Ipv4OptionType
impl UnwindSafe for Ipv4OptionType
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