pub struct NetworkInterface {
pub iface_id: String,
pub guest_mac: String,
pub host_dev_name: String,
}Expand description
PUT /network-interfaces/{iface_id}
Attaches a virtio-net device to the VM backed by a host TAP interface.
host_dev_name must already exist on the host (created via ip tuntap add)
and be owned by the uid Firecracker runs under, otherwise the API call
fails with EPERM.
Fields§
§iface_id: String§guest_mac: String§host_dev_name: StringTrait Implementations§
Source§impl Debug for NetworkInterface
impl Debug for NetworkInterface
Auto Trait Implementations§
impl Freeze for NetworkInterface
impl RefUnwindSafe for NetworkInterface
impl Send for NetworkInterface
impl Sync for NetworkInterface
impl Unpin for NetworkInterface
impl UnsafeUnpin for NetworkInterface
impl UnwindSafe for NetworkInterface
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