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
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>,
Source§impl<CC, BC> SendableFrameMeta<CC, BC> for DeviceSocketMetadata<LoopbackDevice, <CC as DeviceIdContext<LoopbackDevice>>::DeviceId>where
CC: TransmitQueueHandler<LoopbackDevice, BC, Meta = LoopbackTxQueueMeta<<CC as DeviceIdContext<AnyDevice>>::WeakDeviceId>> + ResourceCounterContext<<CC as DeviceIdContext<LoopbackDevice>>::DeviceId, DeviceCounters> + DeviceIdContext<AnyDevice>,
BC: DeviceLayerTypes,
impl<CC, BC> SendableFrameMeta<CC, BC> for DeviceSocketMetadata<LoopbackDevice, <CC as DeviceIdContext<LoopbackDevice>>::DeviceId>where
CC: TransmitQueueHandler<LoopbackDevice, BC, Meta = LoopbackTxQueueMeta<<CC as DeviceIdContext<AnyDevice>>::WeakDeviceId>> + ResourceCounterContext<<CC as DeviceIdContext<LoopbackDevice>>::DeviceId, DeviceCounters> + DeviceIdContext<AnyDevice>,
BC: DeviceLayerTypes,
Source§impl<CC, BC> SendableFrameMeta<CC, BC> for DeviceSocketMetadata<PureIpDevice, CC::DeviceId>where
CC: TransmitQueueHandler<PureIpDevice, BC, Meta = PureIpDeviceTxQueueFrameMetadata> + ResourceCounterContext<CC::DeviceId, DeviceCounters>,
impl<CC, BC> SendableFrameMeta<CC, BC> for DeviceSocketMetadata<PureIpDevice, CC::DeviceId>where
CC: TransmitQueueHandler<PureIpDevice, BC, Meta = PureIpDeviceTxQueueFrameMetadata> + 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
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
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
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