Struct StaticConfigV4
pub struct StaticConfigV4 {
pub address: Cidr,
pub gateway: Option<Ipv4Addr>,
pub dns_servers: Vec<Ipv4Addr, 3>,
}
Available on crate feature
proto-ipv4
only.Expand description
Static IP address configuration.
Fields§
§address: Cidr
IP address and subnet mask.
gateway: Option<Ipv4Addr>
Default gateway.
dns_servers: Vec<Ipv4Addr, 3>
DNS servers.
Trait Implementations§
§impl Clone for StaticConfigV4
impl Clone for StaticConfigV4
§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 more§impl Debug for StaticConfigV4
impl Debug for StaticConfigV4
§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