#[non_exhaustive]pub struct NetworkInterfaceConfig {
pub iface_id: IfaceId,
pub host_dev_name: HostDevName,
pub guest_mac: Option<MacAddr>,
pub rx_rate_limiter: Option<Value>,
pub tx_rate_limiter: Option<Value>,
}Expand description
Validated /network-interfaces/{id} PUT body.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.iface_id: IfaceIdValidated interface ID.
host_dev_name: HostDevNameCaller-requested host device name (informational; the vmnet handle is derived).
Wrapped in HostDevName so downstream consumers (squib-vmm::NetSpec) cannot
re-introduce an unvalidated String by accident.
guest_mac: Option<MacAddr>Validated guest MAC; None requests auto-generation downstream.
rx_rate_limiter: Option<Value>RX rate limiter passthrough.
tx_rate_limiter: Option<Value>TX rate limiter passthrough.
Trait Implementations§
Source§impl Clone for NetworkInterfaceConfig
impl Clone for NetworkInterfaceConfig
Source§fn clone(&self) -> NetworkInterfaceConfig
fn clone(&self) -> NetworkInterfaceConfig
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 NetworkInterfaceConfig
impl Debug for NetworkInterfaceConfig
Source§impl Serialize for NetworkInterfaceConfig
impl Serialize for NetworkInterfaceConfig
Auto Trait Implementations§
impl Freeze for NetworkInterfaceConfig
impl RefUnwindSafe for NetworkInterfaceConfig
impl Send for NetworkInterfaceConfig
impl Sync for NetworkInterfaceConfig
impl Unpin for NetworkInterfaceConfig
impl UnsafeUnpin for NetworkInterfaceConfig
impl UnwindSafe for NetworkInterfaceConfig
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