Struct dhcpv4::configuration::ServerParameters
source · pub struct ServerParameters {
pub server_ips: Vec<Ipv4Addr>,
pub lease_length: LeaseLength,
pub managed_addrs: ManagedAddresses,
pub permitted_macs: PermittedMacs,
pub static_assignments: StaticAssignments,
pub arp_probe: bool,
pub bound_device_names: Vec<String>,
}
Expand description
A collection of the basic configuration parameters needed by the server.
Fields§
§server_ips: Vec<Ipv4Addr>
The IPv4 addresses of the host running the server.
lease_length: LeaseLength
The duration for which leases should be assigned to clients
managed_addrs: ManagedAddresses
The IPv4 addresses which the server is responsible for managing and leasing to clients.
permitted_macs: PermittedMacs
A list of MAC addresses which are permitted to request a lease. If empty, any MAC address may request a lease.
static_assignments: StaticAssignments
A collection of static address assignments. Any client whose MAC address has a static assignment will be offered the assigned IP address.
arp_probe: bool
Enables server behavior where the server ARPs an IP address prior to issuing it in a lease.
bound_device_names: Vec<String>
The interface names to which the server’s UDP sockets are bound. If this vector is empty, the server will not bind to a specific interface and will process incoming DHCP messages regardless of the interface on which they arrive.
Implementations§
Trait Implementations§
source§impl Clone for ServerParameters
impl Clone for ServerParameters
source§fn clone(&self) -> ServerParameters
fn clone(&self) -> ServerParameters
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ServerParameters
impl Debug for ServerParameters
source§impl<'de> Deserialize<'de> for ServerParameters
impl<'de> Deserialize<'de> for ServerParameters
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>,
source§impl PartialEq for ServerParameters
impl PartialEq for ServerParameters
source§fn eq(&self, other: &ServerParameters) -> bool
fn eq(&self, other: &ServerParameters) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ServerParameters
impl Serialize for ServerParameters
impl StructuralPartialEq for ServerParameters
Auto Trait Implementations§
impl Freeze for ServerParameters
impl RefUnwindSafe for ServerParameters
impl Send for ServerParameters
impl Sync for ServerParameters
impl Unpin for ServerParameters
impl UnwindSafe for ServerParameters
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)