pub struct BootstrapIpv4 {
pub address: Ipv4Addr,
pub prefix_len: u8,
pub gateway: Ipv4Addr,
pub dns: Option<Ipv4Addr>,
}Expand description
Guest IPv4 address configuration.
Fields§
§address: Ipv4AddrGuest IPv4 address.
prefix_len: u8CIDR prefix length.
gateway: Ipv4AddrDefault gateway.
dns: Option<Ipv4Addr>DNS resolver address.
Trait Implementations§
Source§impl Clone for BootstrapIpv4
impl Clone for BootstrapIpv4
Source§fn clone(&self) -> BootstrapIpv4
fn clone(&self) -> BootstrapIpv4
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 moreimpl Copy for BootstrapIpv4
Source§impl Debug for BootstrapIpv4
impl Debug for BootstrapIpv4
Source§impl<'de> Deserialize<'de> for BootstrapIpv4
impl<'de> Deserialize<'de> for BootstrapIpv4
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
impl Eq for BootstrapIpv4
Source§impl PartialEq for BootstrapIpv4
impl PartialEq for BootstrapIpv4
Source§impl Serialize for BootstrapIpv4
impl Serialize for BootstrapIpv4
impl StructuralPartialEq for BootstrapIpv4
Auto Trait Implementations§
impl Freeze for BootstrapIpv4
impl RefUnwindSafe for BootstrapIpv4
impl Send for BootstrapIpv4
impl Sync for BootstrapIpv4
impl Unpin for BootstrapIpv4
impl UnsafeUnpin for BootstrapIpv4
impl UnwindSafe for BootstrapIpv4
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