pub struct RecvIpFrameMeta<D, M, I: Ip> {
pub device: D,
pub frame_dst: Option<FrameDestination>,
pub ip_layer_metadata: M,
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).
ip_layer_metadata: M
Metadata that is produced and consumed by the IP layer but which traverses the device layer through the loopback device.
marker: IpVersionMarker<I>
A marker for the Ip version in this frame.
Implementations§
Source§impl<D, M, I: Ip> RecvIpFrameMeta<D, M, I>
impl<D, M, I: Ip> RecvIpFrameMeta<D, M, I>
Sourcepub fn new(
device: D,
frame_dst: Option<FrameDestination>,
ip_layer_metadata: M,
) -> RecvIpFrameMeta<D, M, I>
pub fn new( device: D, frame_dst: Option<FrameDestination>, ip_layer_metadata: M, ) -> RecvIpFrameMeta<D, M, I>
Creates a new RecvIpFrameMeta
originating from device
and frame_dst
option.
Auto Trait Implementations§
impl<D, M, I> Freeze for RecvIpFrameMeta<D, M, I>
impl<D, M, I> RefUnwindSafe for RecvIpFrameMeta<D, M, I>
impl<D, M, I> Send for RecvIpFrameMeta<D, M, I>
impl<D, M, I> Sync for RecvIpFrameMeta<D, M, I>
impl<D, M, I> Unpin for RecvIpFrameMeta<D, M, I>
impl<D, M, I> UnwindSafe for RecvIpFrameMeta<D, M, I>
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