#[repr(u8)]pub enum OptionCode {
Show 76 variants
Pad = 0,
SubnetMask = 1,
TimeOffset = 2,
Router = 3,
TimeServer = 4,
NameServer = 5,
DomainNameServer = 6,
LogServer = 7,
CookieServer = 8,
LprServer = 9,
ImpressServer = 10,
ResourceLocationServer = 11,
HostName = 12,
BootFileSize = 13,
MeritDumpFile = 14,
DomainName = 15,
SwapServer = 16,
RootPath = 17,
ExtensionsPath = 18,
IpForwarding = 19,
NonLocalSourceRouting = 20,
PolicyFilter = 21,
MaxDatagramReassemblySize = 22,
DefaultIpTtl = 23,
PathMtuAgingTimeout = 24,
PathMtuPlateauTable = 25,
InterfaceMtu = 26,
AllSubnetsLocal = 27,
BroadcastAddress = 28,
PerformMaskDiscovery = 29,
MaskSupplier = 30,
PerformRouterDiscovery = 31,
RouterSolicitationAddress = 32,
StaticRoute = 33,
TrailerEncapsulation = 34,
ArpCacheTimeout = 35,
EthernetEncapsulation = 36,
TcpDefaultTtl = 37,
TcpKeepaliveInterval = 38,
TcpKeepaliveGarbage = 39,
NetworkInformationServiceDomain = 40,
NetworkInformationServers = 41,
NetworkTimeProtocolServers = 42,
VendorSpecificInformation = 43,
NetBiosOverTcpipNameServer = 44,
NetBiosOverTcpipDatagramDistributionServer = 45,
NetBiosOverTcpipNodeType = 46,
NetBiosOverTcpipScope = 47,
XWindowSystemFontServer = 48,
XWindowSystemDisplayManager = 49,
RequestedIpAddress = 50,
IpAddressLeaseTime = 51,
OptionOverload = 52,
DhcpMessageType = 53,
ServerIdentifier = 54,
ParameterRequestList = 55,
Message = 56,
MaxDhcpMessageSize = 57,
RenewalTimeValue = 58,
RebindingTimeValue = 59,
VendorClassIdentifier = 60,
ClientIdentifier = 61,
NetworkInformationServicePlusDomain = 64,
NetworkInformationServicePlusServers = 65,
TftpServerName = 66,
BootfileName = 67,
MobileIpHomeAgent = 68,
SmtpServer = 69,
Pop3Server = 70,
NntpServer = 71,
DefaultWwwServer = 72,
DefaultFingerServer = 73,
DefaultIrcServer = 74,
StreetTalkServer = 75,
StreetTalkDirectoryAssistanceServer = 76,
End = 255,
}
Expand description
A DHCP option code.
This enum corresponds to the codes for DHCP options as defined in RFC 1533. Note that not all options defined in the RFC are represented here; options which are not in this type are not currently supported. Supported options appear in this type in the order in which they are defined in the RFC.
Variants§
Pad = 0
SubnetMask = 1
TimeOffset = 2
Router = 3
TimeServer = 4
NameServer = 5
DomainNameServer = 6
LogServer = 7
CookieServer = 8
LprServer = 9
ImpressServer = 10
ResourceLocationServer = 11
HostName = 12
BootFileSize = 13
MeritDumpFile = 14
DomainName = 15
SwapServer = 16
RootPath = 17
ExtensionsPath = 18
IpForwarding = 19
NonLocalSourceRouting = 20
PolicyFilter = 21
MaxDatagramReassemblySize = 22
DefaultIpTtl = 23
PathMtuAgingTimeout = 24
PathMtuPlateauTable = 25
InterfaceMtu = 26
AllSubnetsLocal = 27
BroadcastAddress = 28
PerformMaskDiscovery = 29
MaskSupplier = 30
PerformRouterDiscovery = 31
RouterSolicitationAddress = 32
StaticRoute = 33
TrailerEncapsulation = 34
ArpCacheTimeout = 35
EthernetEncapsulation = 36
TcpDefaultTtl = 37
TcpKeepaliveInterval = 38
TcpKeepaliveGarbage = 39
NetworkInformationServiceDomain = 40
NetworkInformationServers = 41
NetworkTimeProtocolServers = 42
VendorSpecificInformation = 43
NetBiosOverTcpipNameServer = 44
NetBiosOverTcpipDatagramDistributionServer = 45
NetBiosOverTcpipNodeType = 46
NetBiosOverTcpipScope = 47
XWindowSystemFontServer = 48
XWindowSystemDisplayManager = 49
RequestedIpAddress = 50
IpAddressLeaseTime = 51
OptionOverload = 52
DhcpMessageType = 53
ServerIdentifier = 54
ParameterRequestList = 55
Message = 56
MaxDhcpMessageSize = 57
RenewalTimeValue = 58
RebindingTimeValue = 59
VendorClassIdentifier = 60
ClientIdentifier = 61
NetworkInformationServicePlusDomain = 64
NetworkInformationServicePlusServers = 65
TftpServerName = 66
BootfileName = 67
MobileIpHomeAgent = 68
SmtpServer = 69
Pop3Server = 70
NntpServer = 71
DefaultWwwServer = 72
DefaultFingerServer = 73
DefaultIrcServer = 74
StreetTalkServer = 75
StreetTalkDirectoryAssistanceServer = 76
End = 255
Trait Implementations§
Source§impl Clone for OptionCode
impl Clone for OptionCode
Source§fn clone(&self) -> OptionCode
fn clone(&self) -> OptionCode
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 OptionCode
impl Debug for OptionCode
Source§impl<'de> Deserialize<'de> for OptionCode
impl<'de> Deserialize<'de> for OptionCode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for OptionCode
impl Display for OptionCode
Source§impl From<OptionCode> for u8
impl From<OptionCode> for u8
Source§fn from(code: OptionCode) -> u8
fn from(code: OptionCode) -> u8
Converts to this type from the input type.
Source§impl FromPrimitive for OptionCode
impl FromPrimitive for OptionCode
Source§fn from_i64(n: i64) -> Option<Self>
fn from_i64(n: i64) -> Option<Self>
Converts an
i64
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_u64(n: u64) -> Option<Self>
fn from_u64(n: u64) -> Option<Self>
Converts an
u64
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_isize(n: isize) -> Option<Self>
fn from_isize(n: isize) -> Option<Self>
Converts an
isize
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_i8(n: i8) -> Option<Self>
fn from_i8(n: i8) -> Option<Self>
Converts an
i8
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_i16(n: i16) -> Option<Self>
fn from_i16(n: i16) -> Option<Self>
Converts an
i16
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_i32(n: i32) -> Option<Self>
fn from_i32(n: i32) -> Option<Self>
Converts an
i32
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_i128(n: i128) -> Option<Self>
fn from_i128(n: i128) -> Option<Self>
Converts an
i128
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read moreSource§fn from_usize(n: usize) -> Option<Self>
fn from_usize(n: usize) -> Option<Self>
Converts a
usize
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_u8(n: u8) -> Option<Self>
fn from_u8(n: u8) -> Option<Self>
Converts an
u8
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_u16(n: u16) -> Option<Self>
fn from_u16(n: u16) -> Option<Self>
Converts an
u16
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_u32(n: u32) -> Option<Self>
fn from_u32(n: u32) -> Option<Self>
Converts an
u32
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_u128(n: u128) -> Option<Self>
fn from_u128(n: u128) -> Option<Self>
Converts an
u128
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read moreSource§impl Hash for OptionCode
impl Hash for OptionCode
Source§impl Ord for OptionCode
impl Ord for OptionCode
Source§fn cmp(&self, other: &OptionCode) -> Ordering
fn cmp(&self, other: &OptionCode) -> 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 OptionCode
impl PartialEq for OptionCode
Source§impl PartialOrd for OptionCode
impl PartialOrd for OptionCode
Source§impl Serialize for OptionCode
impl Serialize for OptionCode
Source§impl TryFrom<u8> for OptionCode
impl TryFrom<u8> for OptionCode
impl Copy for OptionCode
impl Eq for OptionCode
impl StructuralPartialEq for OptionCode
Auto Trait Implementations§
impl Freeze for OptionCode
impl RefUnwindSafe for OptionCode
impl Send for OptionCode
impl Sync for OptionCode
impl Unpin for OptionCode
impl UnwindSafe for OptionCode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)