pub struct VirtioPollConfig {
pub gateway_mac: [u8; 6],
pub guest_mac: [u8; 6],
pub gateway_ipv4: Ipv4Addr,
pub guest_ipv4: Ipv4Addr,
pub mtu: usize,
}Expand description
Resolved network parameters for one guest NIC.
These are the host-side parameters for the virtual link. Note that the smoltcp interface is configured with the gateway MAC/IP, because the host runtime is acting as the guest-visible gateway endpoint.
Fields§
§gateway_mac: [u8; 6]Host-side gateway MAC visible to the guest.
guest_mac: [u8; 6]Guest MAC address.
gateway_ipv4: Ipv4AddrGateway IPv4 address.
guest_ipv4: Ipv4AddrGuest IPv4 address.
mtu: usizeIP-level MTU.
Trait Implementations§
Source§impl Clone for VirtioPollConfig
impl Clone for VirtioPollConfig
Source§fn clone(&self) -> VirtioPollConfig
fn clone(&self) -> VirtioPollConfig
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 VirtioPollConfig
impl Debug for VirtioPollConfig
impl Copy for VirtioPollConfig
Auto Trait Implementations§
impl Freeze for VirtioPollConfig
impl RefUnwindSafe for VirtioPollConfig
impl Send for VirtioPollConfig
impl Sync for VirtioPollConfig
impl Unpin for VirtioPollConfig
impl UnsafeUnpin for VirtioPollConfig
impl UnwindSafe for VirtioPollConfig
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