pub struct DeviceLayerState<BT: DeviceLayerTypes> {
pub origin: OriginTracker,
pub shared_sockets: HeldSockets<BT>,
pub counters: DeviceCounters,
pub ethernet_counters: EthernetDeviceCounters,
pub pure_ip_counters: PureIpDeviceCounters,
pub nud_v4_counters: NudCounters<Ipv4>,
pub nud_v6_counters: NudCounters<Ipv6>,
pub arp_counters: ArpCounters,
/* private fields */
}
Expand description
The state associated with the device layer.
Fields§
§origin: OriginTracker
Device layer origin tracker.
Collection of all device sockets.
counters: DeviceCounters
Common device counters.
ethernet_counters: EthernetDeviceCounters
Ethernet counters.
pure_ip_counters: PureIpDeviceCounters
PureIp counters.
nud_v4_counters: NudCounters<Ipv4>
IPv4 NUD counters.
nud_v6_counters: NudCounters<Ipv6>
IPv6 NUD counters.
arp_counters: ArpCounters
ARP counters.
Implementations§
Source§impl<BT: DeviceLayerTypes> DeviceLayerState<BT>
impl<BT: DeviceLayerTypes> DeviceLayerState<BT>
Sourcepub fn nud_counters<I: Ip>(&self) -> &NudCounters<I>
pub fn nud_counters<I: Ip>(&self) -> &NudCounters<I>
Helper to access NUD counters for an IP version.
Trait Implementations§
Source§impl<BT: DeviceLayerTypes> Default for DeviceLayerState<BT>
impl<BT: DeviceLayerTypes> Default for DeviceLayerState<BT>
Source§impl<BT: DeviceLayerTypes> OrderedLockAccess<Devices<BT>> for DeviceLayerState<BT>
impl<BT: DeviceLayerTypes> OrderedLockAccess<Devices<BT>> for DeviceLayerState<BT>
Auto Trait Implementations§
impl<BT> !Freeze for DeviceLayerState<BT>
impl<BT> RefUnwindSafe for DeviceLayerState<BT>
impl<BT> Send for DeviceLayerState<BT>
impl<BT> Sync for DeviceLayerState<BT>
impl<BT> Unpin for DeviceLayerState<BT>
impl<BT> UnwindSafe for DeviceLayerState<BT>
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<O, BC> BuildableCoreContext<BC> for Owhere
O: Default,
impl<O, BC> BuildableCoreContext<BC> for Owhere
O: Default,
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