Struct netstack3_base::RecvIpFrameMeta
source · pub struct RecvIpFrameMeta<D, I: Ip> {
pub device: D,
pub frame_dst: Option<FrameDestination>,
pub marker: IpVersionMarker<I>,
}
Expand description
The metadata required for a packet to get into the IP layer.
Fields§
§device: D
The device on which the IP frame was received.
frame_dst: Option<FrameDestination>
The link-layer destination address from the link-layer frame, if any.
None
if the IP frame originated above the link-layer (e.g. pure IP
devices).
marker: IpVersionMarker<I>
A marker for the Ip version in this frame.
Implementations§
source§impl<D, I: Ip> RecvIpFrameMeta<D, I>
impl<D, I: Ip> RecvIpFrameMeta<D, I>
sourcepub fn new(
device: D,
frame_dst: Option<FrameDestination>,
) -> RecvIpFrameMeta<D, I>
pub fn new( device: D, frame_dst: Option<FrameDestination>, ) -> RecvIpFrameMeta<D, I>
Creates a new RecvIpFrameMeta
originating from device
and frame_dst
option.
Auto Trait Implementations§
impl<D, I> Freeze for RecvIpFrameMeta<D, I>where
D: Freeze,
impl<D, I> RefUnwindSafe for RecvIpFrameMeta<D, I>where
D: RefUnwindSafe,
I: RefUnwindSafe,
impl<D, I> Send for RecvIpFrameMeta<D, I>where
D: Send,
impl<D, I> Sync for RecvIpFrameMeta<D, I>where
D: Sync,
impl<D, I> Unpin for RecvIpFrameMeta<D, I>
impl<D, I> UnwindSafe for RecvIpFrameMeta<D, I>where
D: UnwindSafe,
I: 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<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