pub struct NetworkInterface {
pub guest_mac: Option<String>,
pub host_dev_name: PathBuf,
pub iface_id: String,
pub rx_rate_limiter: Option<RateLimiter>,
pub tx_rate_limiter: Option<RateLimiter>,
}
Expand description
Defines a network interface.
Fieldsยง
ยงguest_mac: Option<String>
If this field is set, the device model will reply to HTTP GET requests sent to the MMDS address via this interface. In this case, both ARP requests for 169.254.169.254 and TCP segments heading to the same address are intercepted by the device model, and do not reach the associated TAP device. guest mac
host_dev_name: PathBuf
Host level path for the guest network interface Required: true
iface_id: String
iface id Required: true
rx_rate_limiter: Option<RateLimiter>
rx rate limiter
tx_rate_limiter: Option<RateLimiter>
tx rate limiter
Trait Implementationsยง
Sourceยงimpl Clone for NetworkInterface
impl Clone for NetworkInterface
Sourceยงfn clone(&self) -> NetworkInterface
fn clone(&self) -> NetworkInterface
Returns a copy of the value. Read more
1.0.0 ยท 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 NetworkInterface
impl Debug for NetworkInterface
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 Hash for NetworkInterface
impl Hash for NetworkInterface
Sourceยงimpl Ord for NetworkInterface
impl Ord for NetworkInterface
Sourceยงfn cmp(&self, other: &NetworkInterface) -> Ordering
fn cmp(&self, other: &NetworkInterface) -> Ordering
1.21.0 ยท Sourceยงfn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Sourceยงimpl PartialEq for NetworkInterface
impl PartialEq for NetworkInterface
Sourceยงimpl PartialOrd for NetworkInterface
impl PartialOrd for NetworkInterface
Sourceยงimpl Serialize for NetworkInterface
impl Serialize for NetworkInterface
impl Eq for NetworkInterface
impl StructuralPartialEq 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