pub struct Settings {
pub ip: Ipv4Addr,
pub server_ip: Option<Ipv4Addr>,
pub lease_time_secs: Option<u32>,
pub gateway: Option<Ipv4Addr>,
pub subnet: Option<Ipv4Addr>,
pub dns1: Option<Ipv4Addr>,
pub dns2: Option<Ipv4Addr>,
}
Fields§
§ip: Ipv4Addr
§server_ip: Option<Ipv4Addr>
§lease_time_secs: Option<u32>
§gateway: Option<Ipv4Addr>
§subnet: Option<Ipv4Addr>
§dns1: Option<Ipv4Addr>
§dns2: Option<Ipv4Addr>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Settings
impl Send for Settings
impl Sync for Settings
impl Unpin for Settings
impl UnwindSafe for Settings
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