pub struct NetConfig {
pub iface_id: String,
pub host_dev_name: String,
pub guest_mac: Option<[u8; 6]>,
pub mtu: Option<u16>,
}Expand description
virtio-net configuration.
Fields§
§iface_id: StringOperator-supplied identifier.
host_dev_name: StringHost-side device name (eth0, tap0, etc.).
guest_mac: Option<[u8; 6]>Guest-side MAC; if None the driver picks one (we don’t offer F_MAC).
mtu: Option<u16>MTU; if None we don’t offer VIRTIO_NET_F_MTU.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NetConfig
impl RefUnwindSafe for NetConfig
impl Send for NetConfig
impl Sync for NetConfig
impl Unpin for NetConfig
impl UnsafeUnpin for NetConfig
impl UnwindSafe for NetConfig
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