pub struct PollLoopConfig {
pub gateway_mac: [u8; 6],
pub guest_mac: [u8; 6],
pub gateway: GatewayIps,
pub guest_ipv4: Option<Ipv4Addr>,
pub guest_ipv6: Option<Ipv6Addr>,
pub mtu: usize,
}Expand description
Resolved network parameters for the poll loop. Created by
SmoltcpNetwork::new() from NetworkConfig + sandbox slot.
Fields§
§gateway_mac: [u8; 6]Gateway MAC address (smoltcp’s identity on the virtual LAN).
guest_mac: [u8; 6]Guest MAC address.
gateway: GatewayIpsGateway addresses owned by the smoltcp virtual stack. Each family
is Some when that family is active for this sandbox (host has a
route, or the user supplied an explicit address).
guest_ipv4: Option<Ipv4Addr>Guest IPv4 address. None when IPv4 is inactive for this sandbox.
guest_ipv6: Option<Ipv6Addr>Guest IPv6 address. None when IPv6 is inactive for this sandbox.
mtu: usizeIP-level MTU (e.g. 1500).
Auto Trait Implementations§
impl Freeze for PollLoopConfig
impl RefUnwindSafe for PollLoopConfig
impl Send for PollLoopConfig
impl Sync for PollLoopConfig
impl Unpin for PollLoopConfig
impl UnsafeUnpin for PollLoopConfig
impl UnwindSafe for PollLoopConfig
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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