pub struct DeviceSocketMetadata<D, DeviceId>where
D: DeviceSocketSendTypes,{
pub device_id: DeviceId,
pub metadata: <D as DeviceSocketSendTypes>::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 as DeviceSocketSendTypes>::Metadata
The metadata required to send that’s specific to the device type.
Trait Implementations§
Source§impl<D, DeviceId> Debug for DeviceSocketMetadata<D, DeviceId>
impl<D, DeviceId> Debug for DeviceSocketMetadata<D, DeviceId>
Source§impl<D, DeviceId> PartialEq for DeviceSocketMetadata<D, DeviceId>
impl<D, DeviceId> PartialEq for DeviceSocketMetadata<D, DeviceId>
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, CC> SendableFrameMeta<CC, BC> for DeviceSocketMetadata<EthernetLinkDevice, BaseDeviceId<EthernetLinkDevice, BC>>where
BC: EthernetIpLinkDeviceBindingsContext,
CC: EthernetIpLinkDeviceDynamicStateContext<BC, DeviceId = BaseDeviceId<EthernetLinkDevice, BC>> + TransmitQueueHandler<EthernetLinkDevice, BC, Meta = ()> + ResourceCounterContext<<CC as DeviceIdContext<EthernetLinkDevice>>::DeviceId, DeviceCounters> + DeviceIdContext<EthernetLinkDevice>,
impl<BC, CC> SendableFrameMeta<CC, BC> for DeviceSocketMetadata<EthernetLinkDevice, BaseDeviceId<EthernetLinkDevice, BC>>where
BC: EthernetIpLinkDeviceBindingsContext,
CC: EthernetIpLinkDeviceDynamicStateContext<BC, DeviceId = BaseDeviceId<EthernetLinkDevice, BC>> + TransmitQueueHandler<EthernetLinkDevice, BC, Meta = ()> + ResourceCounterContext<<CC as DeviceIdContext<EthernetLinkDevice>>::DeviceId, DeviceCounters> + DeviceIdContext<EthernetLinkDevice>,
Source§fn send_meta<S>(
self,
core_ctx: &mut CC,
bindings_ctx: &mut BC,
body: S,
) -> Result<(), ErrorAndSerializer<SendFrameErrorReason, S>>where
S: Serializer,
<S as Serializer>::Buffer: BufferMut,
fn send_meta<S>(
self,
core_ctx: &mut CC,
bindings_ctx: &mut BC,
body: S,
) -> Result<(), ErrorAndSerializer<SendFrameErrorReason, S>>where
S: Serializer,
<S as Serializer>::Buffer: BufferMut,
Sends this frame metadata to the provided contexts.
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§fn send_meta<S>(
self,
core_ctx: &mut CC,
bindings_ctx: &mut BC,
body: S,
) -> Result<(), ErrorAndSerializer<SendFrameErrorReason, S>>where
S: Serializer,
<S as Serializer>::Buffer: BufferMut,
fn send_meta<S>(
self,
core_ctx: &mut CC,
bindings_ctx: &mut BC,
body: S,
) -> Result<(), ErrorAndSerializer<SendFrameErrorReason, S>>where
S: Serializer,
<S as Serializer>::Buffer: BufferMut,
Sends this frame metadata to the provided contexts.
Source§impl<CC, BC> SendableFrameMeta<CC, BC> for DeviceSocketMetadata<PureIpDevice, <CC as DeviceIdContext<PureIpDevice>>::DeviceId>where
CC: TransmitQueueHandler<PureIpDevice, BC, Meta = PureIpDeviceTxQueueFrameMetadata> + ResourceCounterContext<<CC as DeviceIdContext<PureIpDevice>>::DeviceId, DeviceCounters>,
impl<CC, BC> SendableFrameMeta<CC, BC> for DeviceSocketMetadata<PureIpDevice, <CC as DeviceIdContext<PureIpDevice>>::DeviceId>where
CC: TransmitQueueHandler<PureIpDevice, BC, Meta = PureIpDeviceTxQueueFrameMetadata> + ResourceCounterContext<<CC as DeviceIdContext<PureIpDevice>>::DeviceId, DeviceCounters>,
Source§fn send_meta<S>(
self,
core_ctx: &mut CC,
bindings_ctx: &mut BC,
body: S,
) -> Result<(), ErrorAndSerializer<SendFrameErrorReason, S>>where
S: Serializer,
<S as Serializer>::Buffer: BufferMut,
fn send_meta<S>(
self,
core_ctx: &mut CC,
bindings_ctx: &mut BC,
body: S,
) -> Result<(), ErrorAndSerializer<SendFrameErrorReason, S>>where
S: Serializer,
<S as Serializer>::Buffer: BufferMut,
Sends this frame metadata to the provided contexts.
impl<D, DeviceId> StructuralPartialEq for DeviceSocketMetadata<D, DeviceId>where
D: DeviceSocketSendTypes,
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
Source§impl<L, T> UnlockedAccess<L> for Twhere
L: UnlockedAccessMarkerFor<T>,
impl<L, T> UnlockedAccess<L> for Twhere
L: UnlockedAccessMarkerFor<T>,
Source§type Data = <L as UnlockedAccessMarkerFor<T>>::Data
type Data = <L as UnlockedAccessMarkerFor<T>>::Data
The type of state being accessed.
Source§type Guard<'l> = &'l <L as UnlockedAccessMarkerFor<T>>::Data
where
T: 'l
type Guard<'l> = &'l <L as UnlockedAccessMarkerFor<T>>::Data where T: 'l
A guard providing read access to the data.
Source§fn access(&self) -> <T as UnlockedAccess<L>>::Guard<'_>
fn access(&self) -> <T as UnlockedAccess<L>>::Guard<'_>
How to access the state.