pub struct StaticConfigV4 {
pub address: Ipv4Cidr,
pub gateway: Option<Ipv4Address>,
pub dns_servers: Vec<Ipv4Address, 3>,
}
Expand description
Static IP address configuration.
Fields§
§address: Ipv4Cidr
IP address and subnet mask.
gateway: Option<Ipv4Address>
Default gateway.
dns_servers: Vec<Ipv4Address, 3>
DNS servers.
Trait Implementations§
Source§impl Clone for StaticConfigV4
impl Clone for StaticConfigV4
Source§fn clone(&self) -> StaticConfigV4
fn clone(&self) -> StaticConfigV4
Returns a copy 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 moreSource§impl Debug for StaticConfigV4
impl Debug for StaticConfigV4
Source§impl PartialEq for StaticConfigV4
impl PartialEq for StaticConfigV4
impl Eq for StaticConfigV4
impl StructuralPartialEq for StaticConfigV4
Auto Trait Implementations§
impl Freeze for StaticConfigV4
impl RefUnwindSafe for StaticConfigV4
impl Send for StaticConfigV4
impl Sync for StaticConfigV4
impl Unpin for StaticConfigV4
impl UnwindSafe for StaticConfigV4
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)