Module client

Source
Expand description

Defines the client core state machine. Implements the DHCP client state machine.

Structs§

ClientConfig
Configuration for the DHCP client to be used while negotiating with DHCP servers.
DebugLogPrefix
Debug information to include in log messages about the client.
Init
The initial state as depicted in the state-transition diagram in [RFC 2131]. [RFC 2131]: https://datatracker.ietf.org/doc/html/rfc2131#section-4.4
LeaseRenewal
A renewal of a DHCP lease.
LeaseState
The state for an acquired lease held by the DHCP state machine.
NewlyAcquiredLease
A newly-acquired DHCP lease.
Rebinding
The Rebinding state as depicted in the state-transition diagram in RFC 2131.
Renewing
The Renewing state as depicted in the state-transition diagram in RFC 2131.
Requesting
The Requesting state as depicted in the state-transition diagram in RFC 2131.
Selecting
The Selecting state as depicted in the state-transition diagram in RFC 2131.
WaitingToRestart
The state of waiting to restart the configuration process.

Enums§

AddressAssignmentState
State of an address.
AddressEvent
Events for an addr that are produced outside of the core DHCP state machine.
AddressRejectionOutcome
Outcome of handling an address rejection.
Bound
The Bound state as depicted in the state-transition diagram in RFC 2131.
Error
Unexpected, non-recoverable errors encountered by the DHCP client.
ExitReason
The reason the DHCP client exited.
State
All possible core state machine states from the state-transition diagram in RFC 2131.
Step
The next step to take after running the core state machine for one step.
Transition
A state-transition to execute (see State enum variant documentation for a description of each state).
TransitionEffect
A side-effect of a state transition.