pub struct PureIpDeviceReceiveFrameMetadata<D> {
pub device_id: D,
pub ip_version: IpVersion,
}
Expand description
Metadata for IP packets received on a pure IP device.
Fields§
§device_id: D
The device a packet was received on.
ip_version: IpVersion
The IP version of the received packet.
Trait Implementations§
source§impl<CC, BC> ReceivableFrameMeta<CC, BC> for PureIpDeviceReceiveFrameMetadata<CC::DeviceId>where
CC: DeviceIdContext<PureIpDevice> + RecvFrameContext<RecvIpFrameMeta<CC::DeviceId, DeviceIpLayerMetadata, Ipv4>, BC> + RecvFrameContext<RecvIpFrameMeta<CC::DeviceId, DeviceIpLayerMetadata, Ipv6>, BC> + ResourceCounterContext<CC::DeviceId, DeviceCounters> + DeviceSocketHandler<PureIpDevice, BC>,
impl<CC, BC> ReceivableFrameMeta<CC, BC> for PureIpDeviceReceiveFrameMetadata<CC::DeviceId>where
CC: DeviceIdContext<PureIpDevice> + RecvFrameContext<RecvIpFrameMeta<CC::DeviceId, DeviceIpLayerMetadata, Ipv4>, BC> + RecvFrameContext<RecvIpFrameMeta<CC::DeviceId, DeviceIpLayerMetadata, Ipv6>, BC> + ResourceCounterContext<CC::DeviceId, DeviceCounters> + DeviceSocketHandler<PureIpDevice, BC>,
Auto Trait Implementations§
impl<D> Freeze for PureIpDeviceReceiveFrameMetadata<D>where
D: Freeze,
impl<D> RefUnwindSafe for PureIpDeviceReceiveFrameMetadata<D>where
D: RefUnwindSafe,
impl<D> Send for PureIpDeviceReceiveFrameMetadata<D>where
D: Send,
impl<D> Sync for PureIpDeviceReceiveFrameMetadata<D>where
D: Sync,
impl<D> Unpin for PureIpDeviceReceiveFrameMetadata<D>where
D: Unpin,
impl<D> UnwindSafe for PureIpDeviceReceiveFrameMetadata<D>where
D: 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