Struct netstack3_core::routes::ResolvedRoute
source · pub struct ResolvedRoute<I: IpTypesIpExt, D> {
pub src_addr: RoutableIpAddr<I::Addr>,
pub device: D,
pub local_delivery_device: Option<D>,
pub next_hop: NextHop<I::Addr>,
}
Expand description
The resolved route to a destination IP address.
Fields§
§src_addr: RoutableIpAddr<I::Addr>
The source address to use when forwarding packets towards the destination.
device: D
The device over which this destination can be reached.
local_delivery_device: Option<D>
Present when device
is loopback with the device that the destination
address is assigned to.
NB: it’s possible that local_delivery_device
is itself loopback.
next_hop: NextHop<I::Addr>
The next hop via which this destination can be reached.
Trait Implementations§
source§impl<I: Clone + IpTypesIpExt, D: Clone> Clone for ResolvedRoute<I, D>
impl<I: Clone + IpTypesIpExt, D: Clone> Clone for ResolvedRoute<I, D>
source§fn clone(&self) -> ResolvedRoute<I, D>
fn clone(&self) -> ResolvedRoute<I, D>
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<I: IpTypesIpExt, D, IpType> GenericOverIp<IpType> for ResolvedRoute<I, D>where
IpType: IpTypesIpExt + Ip,
impl<I: IpTypesIpExt, D, IpType> GenericOverIp<IpType> for ResolvedRoute<I, D>where
IpType: IpTypesIpExt + Ip,
§type Type = ResolvedRoute<IpType, D>
type Type = ResolvedRoute<IpType, D>
The type of
Self
when its IP-generic parameter is replaced with the
type NewIp
.source§impl<I: PartialEq + IpTypesIpExt, D: PartialEq> PartialEq for ResolvedRoute<I, D>
impl<I: PartialEq + IpTypesIpExt, D: PartialEq> PartialEq for ResolvedRoute<I, D>
source§fn eq(&self, other: &ResolvedRoute<I, D>) -> bool
fn eq(&self, other: &ResolvedRoute<I, D>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<I: Copy + IpTypesIpExt, D: Copy> Copy for ResolvedRoute<I, D>
impl<I: Eq + IpTypesIpExt, D: Eq> Eq for ResolvedRoute<I, D>
impl<I: IpTypesIpExt, D> StructuralPartialEq for ResolvedRoute<I, D>
Auto Trait Implementations§
impl<I, D> Freeze for ResolvedRoute<I, D>
impl<I, D> RefUnwindSafe for ResolvedRoute<I, D>where
I: IpExt + IcmpIpExt + IpProtoExt + Ip + Sealed + Sync + Send + PartialOrd + PartialEq + Ord + Hash + Eq + Default + Debug + Copy + Clone + EthernetIpExt + 'static,
D: RefUnwindSafe,
<I as IpTypesIpExt>::BroadcastMarker: RefUnwindSafe,
<I as Ip>::Addr: RefUnwindSafe,
impl<I, D> Send for ResolvedRoute<I, D>
impl<I, D> Sync for ResolvedRoute<I, D>
impl<I, D> Unpin for ResolvedRoute<I, D>
impl<I, D> UnwindSafe for ResolvedRoute<I, D>where
I: IpExt + IcmpIpExt + IpProtoExt + Ip + Sealed + Sync + Send + PartialOrd + PartialEq + Ord + Hash + Eq + Default + Debug + Copy + Clone + EthernetIpExt + 'static,
D: UnwindSafe,
<I as IpTypesIpExt>::BroadcastMarker: UnwindSafe,
<I as Ip>::Addr: UnwindSafe,
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<Id, CC, BC> TimerHandler<BC, Id> for CCwhere
Id: HandleableTimer<CC, BC>,
impl<Id, CC, BC> TimerHandler<BC, Id> for CCwhere
Id: HandleableTimer<CC, BC>,
source§fn handle_timer(&mut self, bindings_ctx: &mut BC, id: Id)
fn handle_timer(&mut self, bindings_ctx: &mut BC, id: Id)
Handle a timer firing.