pub struct DeviceCounters {
pub send_total_frames: Counter,
pub send_frame: Counter,
pub send_queue_full: Counter,
pub send_serialize_error: Counter,
pub recv_frame: Counter,
pub recv_parse_error: Counter,
pub recv_ipv4_delivered: Counter,
pub recv_ipv6_delivered: Counter,
pub send_ipv4_frame: Counter,
pub send_ipv6_frame: Counter,
pub send_dropped_no_queue: Counter,
pub send_dropped_dequeue: Counter,
}
Expand description
Device layer counters.
Fields§
§send_total_frames: Counter
Count of outgoing frames which enter the device layer (but may or may not have been dropped prior to reaching the wire).
send_frame: Counter
Count of frames sent.
send_queue_full: Counter
Count of frames that failed to send because of a full Tx queue.
send_serialize_error: Counter
Count of frames that failed to send because of a serialization error.
recv_frame: Counter
Count of frames received.
recv_parse_error: Counter
Count of incoming frames dropped due to a parsing error.
recv_ipv4_delivered: Counter
Count of incoming frames containing an IPv4 packet delivered.
recv_ipv6_delivered: Counter
Count of incoming frames containing an IPv6 packet delivered.
send_ipv4_frame: Counter
Count of sent frames containing an IPv4 packet.
send_ipv6_frame: Counter
Count of sent frames containing an IPv6 packet.
send_dropped_no_queue: Counter
Count of frames that failed to send because there was no Tx queue.
send_dropped_dequeue: Counter
Count of frames that were dropped during Tx queue dequeuing.
Implementations§
Source§impl DeviceCounters
impl DeviceCounters
Sourcepub fn send_frame<I: Ip>(&self) -> &Counter
pub fn send_frame<I: Ip>(&self) -> &Counter
Either send_ipv4_frame
or send_ipv6_frame
depending on I
.
Trait Implementations§
Source§impl Default for DeviceCounters
impl Default for DeviceCounters
Source§fn default() -> DeviceCounters
fn default() -> DeviceCounters
Source§impl Inspectable for DeviceCounters
impl Inspectable for DeviceCounters
Auto Trait Implementations§
impl !Freeze for DeviceCounters
impl RefUnwindSafe for DeviceCounters
impl Send for DeviceCounters
impl Sync for DeviceCounters
impl Unpin for DeviceCounters
impl UnwindSafe for DeviceCounters
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
Source§impl<O, BC> BuildableCoreContext<BC> for Owhere
O: Default,
impl<O, BC> BuildableCoreContext<BC> for Owhere
O: Default,
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more