pub struct DeviceSocketMetadata<D: DeviceSocketSendTypes, DeviceId> {
pub device_id: DeviceId,
pub metadata: D::Metadata,
}
Expand description
Metadata required to send a frame on a device socket.
Fields§
§device_id: DeviceId
The device ID to send via.
metadata: D::Metadata
The metadata required to send that’s specific to the device type.
Trait Implementations§
source§impl<D: Debug + DeviceSocketSendTypes, DeviceId: Debug> Debug for DeviceSocketMetadata<D, DeviceId>where
D::Metadata: Debug,
impl<D: Debug + DeviceSocketSendTypes, DeviceId: Debug> Debug for DeviceSocketMetadata<D, DeviceId>where
D::Metadata: Debug,
source§impl<D: PartialEq + DeviceSocketSendTypes, DeviceId: PartialEq> PartialEq for DeviceSocketMetadata<D, DeviceId>where
D::Metadata: PartialEq,
impl<D: PartialEq + DeviceSocketSendTypes, DeviceId: PartialEq> PartialEq for DeviceSocketMetadata<D, DeviceId>where
D::Metadata: PartialEq,
source§fn eq(&self, other: &DeviceSocketMetadata<D, DeviceId>) -> bool
fn eq(&self, other: &DeviceSocketMetadata<D, DeviceId>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<BC: EthernetIpLinkDeviceBindingsContext, CC> SendableFrameMeta<CC, BC> for DeviceSocketMetadata<EthernetLinkDevice, EthernetDeviceId<BC>>where
CC: DeviceIdContext<EthernetLinkDevice, DeviceId = EthernetDeviceId<BC>> + EthernetIpLinkDeviceDynamicStateContext<BC> + TransmitQueueHandler<EthernetLinkDevice, BC, Meta = ()> + ResourceCounterContext<CC::DeviceId, DeviceCounters>,
impl<BC: EthernetIpLinkDeviceBindingsContext, CC> SendableFrameMeta<CC, BC> for DeviceSocketMetadata<EthernetLinkDevice, EthernetDeviceId<BC>>where
CC: DeviceIdContext<EthernetLinkDevice, DeviceId = EthernetDeviceId<BC>> + EthernetIpLinkDeviceDynamicStateContext<BC> + TransmitQueueHandler<EthernetLinkDevice, BC, Meta = ()> + ResourceCounterContext<CC::DeviceId, DeviceCounters>,
impl<D: DeviceSocketSendTypes, DeviceId> StructuralPartialEq for DeviceSocketMetadata<D, DeviceId>
Auto Trait Implementations§
impl<D, DeviceId> Freeze for DeviceSocketMetadata<D, DeviceId>
impl<D, DeviceId> RefUnwindSafe for DeviceSocketMetadata<D, DeviceId>where
D: Device + 'static,
DeviceId: RefUnwindSafe,
<D as DeviceSocketSendTypes>::Metadata: RefUnwindSafe,
impl<D, DeviceId> Send for DeviceSocketMetadata<D, DeviceId>
impl<D, DeviceId> Sync for DeviceSocketMetadata<D, DeviceId>
impl<D, DeviceId> Unpin for DeviceSocketMetadata<D, DeviceId>
impl<D, DeviceId> UnwindSafe for DeviceSocketMetadata<D, DeviceId>where
D: Device + 'static,
DeviceId: UnwindSafe,
<D as DeviceSocketSendTypes>::Metadata: 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<CC, BC, Meta> RecvFrameContext<BC, Meta> for CCwhere
Meta: ReceivableFrameMeta<CC, BC>,
impl<CC, BC, Meta> RecvFrameContext<BC, Meta> 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§impl<Meta, BC> SendableFrameMeta<FakeFrameCtx<Meta>, BC> for Meta
impl<Meta, BC> SendableFrameMeta<FakeFrameCtx<Meta>, BC> for Meta
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.