pub struct NetworkInterface {
pub guest_mac: Option<String>,
pub host_dev_name: String,
pub iface_id: String,
pub rx_rate_limiter: Option<RateLimiter>,
pub tx_rate_limiter: Option<RateLimiter>,
}
Expand description
Defines a network interface for the guest VM, allowing for network connectivity. Supports configuration of MAC addresses and rate limiting for both receive and transmit traffic.
Fields§
§guest_mac: Option<String>
MAC address of the guest network interface
host_dev_name: String
Host level path for the guest network interface
iface_id: String
Network interface identifier
rx_rate_limiter: Option<RateLimiter>
Rate limiter for received traffic
tx_rate_limiter: Option<RateLimiter>
Rate limiter for transmitted traffic
Trait Implementations§
Source§impl Debug for NetworkInterface
impl Debug for NetworkInterface
Source§impl Default for NetworkInterface
impl Default for NetworkInterface
Source§fn default() -> NetworkInterface
fn default() -> NetworkInterface
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NetworkInterface
impl<'de> Deserialize<'de> for NetworkInterface
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
Source§impl Serialize for NetworkInterface
impl Serialize for NetworkInterface
Source§impl Validate for NetworkInterface
impl Validate for NetworkInterface
Source§impl<'v_a> ValidateArgs<'v_a> for NetworkInterface
impl<'v_a> ValidateArgs<'v_a> 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 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