pub struct BootstrapNetwork {
pub interface: String,
pub mac: [u8; 6],
pub mtu: u16,
pub ipv4: Option<BootstrapIpv4>,
pub ipv6: Option<BootstrapIpv6>,
}Expand description
Guest network interface and address configuration.
Fields§
§interface: StringGuest interface name.
mac: [u8; 6]Guest interface MAC address.
mtu: u16Guest interface MTU.
ipv4: Option<BootstrapIpv4>IPv4 address configuration when IPv4 is active.
ipv6: Option<BootstrapIpv6>IPv6 address configuration when IPv6 is active.
Trait Implementations§
Source§impl Clone for BootstrapNetwork
impl Clone for BootstrapNetwork
Source§fn clone(&self) -> BootstrapNetwork
fn clone(&self) -> BootstrapNetwork
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 moreSource§impl Debug for BootstrapNetwork
impl Debug for BootstrapNetwork
Source§impl<'de> Deserialize<'de> for BootstrapNetwork
impl<'de> Deserialize<'de> for BootstrapNetwork
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 BootstrapNetwork
Source§impl PartialEq for BootstrapNetwork
impl PartialEq for BootstrapNetwork
Source§impl Serialize for BootstrapNetwork
impl Serialize for BootstrapNetwork
impl StructuralPartialEq for BootstrapNetwork
Auto Trait Implementations§
impl Freeze for BootstrapNetwork
impl RefUnwindSafe for BootstrapNetwork
impl Send for BootstrapNetwork
impl Sync for BootstrapNetwork
impl Unpin for BootstrapNetwork
impl UnsafeUnpin for BootstrapNetwork
impl UnwindSafe for BootstrapNetwork
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