pub struct ClientSettings {
pub ip: Ipv4Addr,
pub subnet: Subnet,
pub dns: Option<Ipv4Addr>,
pub secondary_dns: Option<Ipv4Addr>,
}
Fields§
§ip: Ipv4Addr
§subnet: Subnet
§dns: Option<Ipv4Addr>
§secondary_dns: Option<Ipv4Addr>
Trait Implementations§
Source§impl Clone for ClientSettings
impl Clone for ClientSettings
Source§fn clone(&self) -> ClientSettings
fn clone(&self) -> ClientSettings
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ClientSettings
impl Debug for ClientSettings
Source§impl Default for ClientSettings
impl Default for ClientSettings
Source§fn default() -> ClientSettings
fn default() -> ClientSettings
Returns the “default value” for a type. Read more
Source§impl PartialEq for ClientSettings
impl PartialEq for ClientSettings
impl Copy for ClientSettings
impl Eq for ClientSettings
impl StructuralPartialEq for ClientSettings
Auto Trait Implementations§
impl Freeze for ClientSettings
impl RefUnwindSafe for ClientSettings
impl Send for ClientSettings
impl Sync for ClientSettings
impl Unpin for ClientSettings
impl UnwindSafe for ClientSettings
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dst: *mut u8)
unsafe fn clone_to_uninit(&self, dst: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)