pub struct Ipv4NetworkConfig {
pub address: Ipv4Addr,
pub prefix_length: u8,
pub gateway: Option<Ipv4Addr>,
pub nameservers: Vec<Ipv4Addr>,
}Fields§
§address: Ipv4Addr§prefix_length: u8§gateway: Option<Ipv4Addr>§nameservers: Vec<Ipv4Addr>Trait Implementations§
Source§impl Clone for Ipv4NetworkConfig
impl Clone for Ipv4NetworkConfig
Source§fn clone(&self) -> Ipv4NetworkConfig
fn clone(&self) -> Ipv4NetworkConfig
Returns a duplicate 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 Ipv4NetworkConfig
impl Debug for Ipv4NetworkConfig
Source§impl<'de> Deserialize<'de> for Ipv4NetworkConfig
impl<'de> Deserialize<'de> for Ipv4NetworkConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Ipv4NetworkConfig
impl RefUnwindSafe for Ipv4NetworkConfig
impl Send for Ipv4NetworkConfig
impl Sync for Ipv4NetworkConfig
impl Unpin for Ipv4NetworkConfig
impl UnwindSafe for Ipv4NetworkConfig
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