Enum dhcp4r::options::DhcpOption[][src]

pub enum DhcpOption {
    DhcpMessageType(MessageType),
    ServerIdentifier(Ipv4Addr),
    ParameterRequestList(Vec<u8>),
    RequestedIpAddress(Ipv4Addr),
    HostName(String),
    Router(Vec<Ipv4Addr>),
    DomainNameServer(Vec<Ipv4Addr>),
    IpAddressLeaseTime(u32),
    SubnetMask(Ipv4Addr),
    Message(String),
    Unrecognized(RawDhcpOption),
}

Variants

DhcpMessageType(MessageType)

Tuple Fields of DhcpMessageType

0: MessageType
ServerIdentifier(Ipv4Addr)

Tuple Fields of ServerIdentifier

0: Ipv4Addr
ParameterRequestList(Vec<u8>)

Tuple Fields of ParameterRequestList

0: Vec<u8>
RequestedIpAddress(Ipv4Addr)

Tuple Fields of RequestedIpAddress

0: Ipv4Addr
HostName(String)

Tuple Fields of HostName

0: String
Router(Vec<Ipv4Addr>)

Tuple Fields of Router

0: Vec<Ipv4Addr>
DomainNameServer(Vec<Ipv4Addr>)

Tuple Fields of DomainNameServer

0: Vec<Ipv4Addr>
IpAddressLeaseTime(u32)

Tuple Fields of IpAddressLeaseTime

0: u32
SubnetMask(Ipv4Addr)

Tuple Fields of SubnetMask

0: Ipv4Addr
Message(String)

Tuple Fields of Message

0: String
Unrecognized(RawDhcpOption)

Tuple Fields of Unrecognized

0: RawDhcpOption

Implementations

Trait Implementations

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 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.