pub struct NetworkInterface {
pub iface_id: String,
pub host_dev_name: String,
pub guest_mac: Option<String>,
pub rx_rate_limiter: Option<RateLimiter>,
pub tx_rate_limiter: Option<RateLimiter>,
}Expand description
Network interface attached to a VM.
Fields§
§iface_id: StringIdentifier used by FC for this interface (e.g. "eth0").
host_dev_name: StringHost-side TAP device name (e.g. "tap-abcd1234").
guest_mac: Option<String>Guest-visible MAC address. None = let Firecracker assign one.
rx_rate_limiter: Option<RateLimiter>Rate limit applied to received traffic on this NIC.
tx_rate_limiter: Option<RateLimiter>Rate limit applied to transmitted traffic on this NIC.
Trait Implementations§
Source§impl Clone for NetworkInterface
impl Clone for NetworkInterface
Source§fn clone(&self) -> NetworkInterface
fn clone(&self) -> NetworkInterface
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 moreAuto 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