Enum dhcproto::v4::OptionCode[][src]

pub enum OptionCode {
Show 61 variants Pad, SubnetMask, TimeOffset, Router, TimeServer, NameServer, DomainNameServer, LogServer, QuoteServer, LprServer, ImpressServer, ResourceLocationServer, Hostname, BootFileSize, MeritDumpFile, DomainName, SwapServer, RootPath, ExtensionsPath, IpForwarding, NonLocalSrcRouting, MaxDatagramSize, DefaultIpTtl, InterfaceMtu, AllSubnetsLocal, BroadcastAddr, PerformMaskDiscovery, MaskSupplier, PerformRouterDiscovery, RouterSolicitationAddr, StaticRoutingTable, ArpCacheTimeout, EthernetEncapsulation, DefaultTcpTtl, TcpKeepaliveInterval, TcpKeepaliveGarbage, NISDomain, NIS, NTPServers, VendorExtensions, NetBiosNameServers, NetBiosDatagramDistributionServer, NetBiosNodeType, NetBiosScope, XFontServer, XDisplayManager, RequestedIpAddress, AddressLeaseTime, OptionOverload, MessageType, ServerIdentifier, ParameterRequestList, Message, MaxMessageSize, Renewal, Rebinding, ClassIdentifier, ClientIdentifier, RelayAgentInformation, Unknown(u8), End,
}
Expand description

Each option type is represented by an 8-bit code

Variants

Pad

0 Padding

SubnetMask

1 Subnet Mask

TimeOffset

2 Time Offset

Router

3 Router

TimeServer

4 Router

NameServer

5 Name Server

DomainNameServer

6 Name Server

LogServer

7 Log Server

QuoteServer

8 Quote Server

LprServer

9 LPR Server

ImpressServer

10 Impress server

ResourceLocationServer

11 Resource Location Server

Hostname

12 Host name

BootFileSize

13 Boot file size

MeritDumpFile

14 Merit Dump File

DomainName

15 Domain Name

SwapServer

16 Swap server

RootPath

17 Root Path

ExtensionsPath

18 Extensions path

IpForwarding

19 IP forwarding

NonLocalSrcRouting

20 Non-local source routing

MaxDatagramSize

22 Max Datagram reassembly size

DefaultIpTtl

23 Ip TTL

InterfaceMtu

26 Interface MTU

AllSubnetsLocal

27 All Subnets Local

BroadcastAddr

28 Broadcast address

PerformMaskDiscovery

29 Perform mask discovery

MaskSupplier

30 Mask supplier

PerformRouterDiscovery

31 Perform router discovery

RouterSolicitationAddr

32 Router solicitation address

StaticRoutingTable

33 Static routing table

ArpCacheTimeout

35 ARP timeout

EthernetEncapsulation

36 Ethernet encapsulation

DefaultTcpTtl

37 Default TCP TTL

TcpKeepaliveInterval

38 TCP keepalive interval

TcpKeepaliveGarbage

39 TCP keealive garbage

NISDomain

40 Network information service domain

NIS

41 Network infomration servers

NTPServers

42 NTP servers

VendorExtensions

43 Vendor Extensions

NetBiosNameServers

44 NetBIOS over TCP/IP name server

NetBiosDatagramDistributionServer

45 NetBIOS over TCP/IP Datagram Distribution Server

NetBiosNodeType

46 NetBIOS over TCP/IP Node Type

NetBiosScope

47 NetBIOS over TCP/IP Scope

XFontServer

48 X Window System Font Server

XDisplayManager

49 Window System Display Manager

RequestedIpAddress

50 Requested IP Address

AddressLeaseTime

51 IP Address Lease Time

OptionOverload

52 Option Overload

MessageType

53 Message Type

ServerIdentifier

54 Server Identifier

ParameterRequestList

55 Parameter Request List

Message

56 Message

MaxMessageSize

57 Maximum DHCP Message Size

Renewal

58 Renewal (T1) Time Value

Rebinding

59 Rebinding (T2) Time Value

ClassIdentifier

60 Class-identifier

ClientIdentifier

61 Client Identifier

RelayAgentInformation

82 Relay Agent Information

Unknown(u8)

Unknown option

Tuple Fields of Unknown

0: u8
End

255 End

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

Performs the conversion.

Performs the conversion.

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.