pub struct StaticIpConfig {
pub ip: Ipv4Addr,
pub prefix_len: u8,
pub gateway: Ipv4Addr,
}Expand description
Static IP configuration.
Fields§
§ip: Ipv4AddrIPv4 address assigned to the interface.
prefix_len: u8CIDR prefix length.
gateway: Ipv4AddrDefault gateway; 0.0.0.0 means no gateway.
Trait Implementations§
Source§impl Clone for StaticIpConfig
impl Clone for StaticIpConfig
Source§fn clone(&self) -> StaticIpConfig
fn clone(&self) -> StaticIpConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Freeze for StaticIpConfig
impl RefUnwindSafe for StaticIpConfig
impl Send for StaticIpConfig
impl Sync for StaticIpConfig
impl Unpin for StaticIpConfig
impl UnsafeUnpin for StaticIpConfig
impl UnwindSafe for StaticIpConfig
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