pub struct DhcpServerConfig<'a> {
pub ip: Ipv4Addr,
pub lease_time: Duration,
pub gateways: &'a [Ipv4Addr],
pub subnet: Option<Ipv4Addr>,
pub dns: &'a [Ipv4Addr],
pub use_captive_portal: bool,
}
Fields§
§ip: Ipv4Addr
§lease_time: Duration
§gateways: &'a [Ipv4Addr]
§subnet: Option<Ipv4Addr>
§dns: &'a [Ipv4Addr]
§use_captive_portal: bool
Trait Implementations§
Source§impl<'a> Clone for DhcpServerConfig<'a>
impl<'a> Clone for DhcpServerConfig<'a>
Source§fn clone(&self) -> DhcpServerConfig<'a>
fn clone(&self) -> DhcpServerConfig<'a>
Returns a duplicate 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 moreAuto Trait Implementations§
impl<'a> Freeze for DhcpServerConfig<'a>
impl<'a> RefUnwindSafe for DhcpServerConfig<'a>
impl<'a> Send for DhcpServerConfig<'a>
impl<'a> Sync for DhcpServerConfig<'a>
impl<'a> Unpin for DhcpServerConfig<'a>
impl<'a> UnwindSafe for DhcpServerConfig<'a>
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