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 a resolved network configuration and 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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more