pub struct EthernetDeviceCounters {
pub recv_unsupported_ethertype: Counter,
pub recv_no_ethertype: Counter,
}
Expand description
Counters for ethernet devices.
Fields§
§recv_unsupported_ethertype: Counter
Count of incoming frames dropped due to an unsupported ethertype.
recv_no_ethertype: Counter
Count of incoming frames dropped due to an empty ethertype.
Trait Implementations§
Source§impl Default for EthernetDeviceCounters
impl Default for EthernetDeviceCounters
Source§fn default() -> EthernetDeviceCounters
fn default() -> EthernetDeviceCounters
Returns the “default value” for a type. Read more
Source§impl Inspectable for EthernetDeviceCounters
impl Inspectable for EthernetDeviceCounters
Auto Trait Implementations§
impl !Freeze for EthernetDeviceCounters
impl RefUnwindSafe for EthernetDeviceCounters
impl Send for EthernetDeviceCounters
impl Sync for EthernetDeviceCounters
impl Unpin for EthernetDeviceCounters
impl UnwindSafe for EthernetDeviceCounters
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