pub struct Destination<A: IpAddress, D>where
A::Version: BroadcastIpExt,{
pub next_hop: NextHop<A>,
pub device: D,
}
Expand description
The destination of an outbound IP packet.
Outbound IP packets are sent to a particular device (specified by the
device
field).
Fields§
§next_hop: NextHop<A>
Indicates the next hop via which this destination can be reached.
device: D
Indicates the device over which this destination can be reached.
Trait Implementations§
Source§impl<A: Clone + IpAddress, D: Clone> Clone for Destination<A, D>where
A::Version: BroadcastIpExt,
impl<A: Clone + IpAddress, D: Clone> Clone for Destination<A, D>where
A::Version: BroadcastIpExt,
Source§fn clone(&self) -> Destination<A, D>
fn clone(&self) -> Destination<A, 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<A: Debug + IpAddress, D: Debug> Debug for Destination<A, D>where
A::Version: BroadcastIpExt,
impl<A: Debug + IpAddress, D: Debug> Debug for Destination<A, D>where
A::Version: BroadcastIpExt,
Source§impl<A: PartialEq + IpAddress, D: PartialEq> PartialEq for Destination<A, D>where
A::Version: BroadcastIpExt,
impl<A: PartialEq + IpAddress, D: PartialEq> PartialEq for Destination<A, D>where
A::Version: BroadcastIpExt,
impl<A: Copy + IpAddress, D: Copy> Copy for Destination<A, D>where
A::Version: BroadcastIpExt,
impl<A: Eq + IpAddress, D: Eq> Eq for Destination<A, D>where
A::Version: BroadcastIpExt,
impl<A: IpAddress, D> StructuralPartialEq for Destination<A, D>where
A::Version: BroadcastIpExt,
Auto Trait Implementations§
impl<A, D> Freeze for Destination<A, D>where
<A as IpAddress>::Version: Sized,
D: Freeze,
<<A as IpAddress>::Version as BroadcastIpExt>::BroadcastMarker: Freeze,
A: Freeze,
impl<A, D> RefUnwindSafe for Destination<A, D>where
<A as IpAddress>::Version: Sized,
D: RefUnwindSafe,
<<A as IpAddress>::Version as BroadcastIpExt>::BroadcastMarker: RefUnwindSafe,
A: RefUnwindSafe,
impl<A, D> Send for Destination<A, D>
impl<A, D> Sync for Destination<A, D>
impl<A, D> Unpin for Destination<A, D>where
<A as IpAddress>::Version: Sized,
D: Unpin,
<<A as IpAddress>::Version as BroadcastIpExt>::BroadcastMarker: Unpin,
A: Unpin,
impl<A, D> UnwindSafe for Destination<A, D>where
<A as IpAddress>::Version: Sized,
D: UnwindSafe,
<<A as IpAddress>::Version as BroadcastIpExt>::BroadcastMarker: UnwindSafe,
A: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<CC, BC, Meta> RecvFrameContext<Meta, BC> for CCwhere
Meta: ReceivableFrameMeta<CC, BC>,
impl<CC, BC, Meta> RecvFrameContext<Meta, BC> for CCwhere
Meta: ReceivableFrameMeta<CC, BC>,
Source§impl<CC, BC, Meta> SendFrameContext<BC, Meta> for CCwhere
Meta: SendableFrameMeta<CC, BC>,
impl<CC, BC, Meta> SendFrameContext<BC, Meta> for CCwhere
Meta: SendableFrameMeta<CC, BC>,
Source§fn send_frame<S>(
&mut self,
bindings_ctx: &mut BC,
metadata: Meta,
frame: S,
) -> Result<(), ErrorAndSerializer<SendFrameErrorReason, S>>where
S: Serializer,
<S as Serializer>::Buffer: BufferMut,
fn send_frame<S>(
&mut self,
bindings_ctx: &mut BC,
metadata: Meta,
frame: S,
) -> Result<(), ErrorAndSerializer<SendFrameErrorReason, S>>where
S: Serializer,
<S as Serializer>::Buffer: BufferMut,
Send a frame. Read more
Source§impl<Id, CC, BC> TimerHandler<BC, Id> for CCwhere
BC: TimerBindingsTypes,
Id: HandleableTimer<CC, BC>,
impl<Id, CC, BC> TimerHandler<BC, Id> for CCwhere
BC: TimerBindingsTypes,
Id: HandleableTimer<CC, BC>,
Source§fn handle_timer(
&mut self,
bindings_ctx: &mut BC,
dispatch: Id,
timer: <BC as TimerBindingsTypes>::UniqueTimerId,
)
fn handle_timer( &mut self, bindings_ctx: &mut BC, dispatch: Id, timer: <BC as TimerBindingsTypes>::UniqueTimerId, )
Handle a timer firing. Read more