#[repr(transparent)]pub struct BorderRoutingCounters(pub otBorderRoutingCounters);
Expand description
This structure represents border routing counters.
Functional equivalent of otsys::otBorderRoutingCounters
.
Tuple Fields§
§0: otBorderRoutingCounters
Implementations§
Source§impl BorderRoutingCounters
impl BorderRoutingCounters
Sourcepub fn inbound_unicast(&self) -> &PacketsAndBytes
pub fn inbound_unicast(&self) -> &PacketsAndBytes
Counters for inbound unicast packets.
Sourcepub fn inbound_multicast(&self) -> &PacketsAndBytes
pub fn inbound_multicast(&self) -> &PacketsAndBytes
Counters for inbound multicast packets.
Sourcepub fn outbound_unicast(&self) -> &PacketsAndBytes
pub fn outbound_unicast(&self) -> &PacketsAndBytes
Counters for outbound unicast packets.
Sourcepub fn outbound_multicast(&self) -> &PacketsAndBytes
pub fn outbound_multicast(&self) -> &PacketsAndBytes
Counters for outbound multicast packets.
Sourcepub fn ra_tx_success(&self) -> u32
pub fn ra_tx_success(&self) -> u32
The number of RA packets successfully transmitted.
Sourcepub fn ra_tx_failure(&self) -> u32
pub fn ra_tx_failure(&self) -> u32
The number of RA packets failed to transmit.
Sourcepub fn rs_tx_success(&self) -> u32
pub fn rs_tx_success(&self) -> u32
The number of RS packets successfully transmitted.
Sourcepub fn rs_tx_failure(&self) -> u32
pub fn rs_tx_failure(&self) -> u32
The number of RS packets failed to transmit.
Sourcepub fn inbound_internet(&self) -> &PacketsAndBytes
pub fn inbound_internet(&self) -> &PacketsAndBytes
Counters for inbound Internet when DHCPv6 PD enabled
Sourcepub fn outbound_internet(&self) -> &PacketsAndBytes
pub fn outbound_internet(&self) -> &PacketsAndBytes
Counters for outbound Internet when DHCPv6 PD enabled
Trait Implementations§
Source§impl Clone for BorderRoutingCounters
impl Clone for BorderRoutingCounters
Source§fn clone(&self) -> BorderRoutingCounters
fn clone(&self) -> BorderRoutingCounters
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BorderRoutingCounters
impl Debug for BorderRoutingCounters
Source§impl Default for BorderRoutingCounters
impl Default for BorderRoutingCounters
Source§fn default() -> BorderRoutingCounters
fn default() -> BorderRoutingCounters
Returns the “default value” for a type. Read more
Source§impl<'a> From<&'a BorderRoutingCounters> for &'a otBorderRoutingCounters
impl<'a> From<&'a BorderRoutingCounters> for &'a otBorderRoutingCounters
Source§fn from(x: &'a BorderRoutingCounters) -> Self
fn from(x: &'a BorderRoutingCounters) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a otBorderRoutingCounters> for &'a BorderRoutingCounters
impl<'a> From<&'a otBorderRoutingCounters> for &'a BorderRoutingCounters
Source§impl From<BorderRoutingCounters> for otBorderRoutingCounters
impl From<BorderRoutingCounters> for otBorderRoutingCounters
Source§fn from(x: BorderRoutingCounters) -> Self
fn from(x: BorderRoutingCounters) -> Self
Converts to this type from the input type.
Source§impl From<otBorderRoutingCounters> for BorderRoutingCounters
impl From<otBorderRoutingCounters> for BorderRoutingCounters
Source§impl OtCastable for BorderRoutingCounters
impl OtCastable for BorderRoutingCounters
Source§fn as_ot_ptr(&self) -> *const Self::OtType
fn as_ot_ptr(&self) -> *const Self::OtType
Returns a pointer to the underlying
Self::OtType
instance.Source§fn as_ot_mut_ptr(&mut self) -> *mut Self::OtType
fn as_ot_mut_ptr(&mut self) -> *mut Self::OtType
Returns a mutable pointer to the underlying
Self::OtType
instance.Source§unsafe fn ref_from_ot_ptr<'a>(ptr: *const Self::OtType) -> Option<&'a Self>
unsafe fn ref_from_ot_ptr<'a>(ptr: *const Self::OtType) -> Option<&'a Self>
Creates a reference from a pointer to an
Self::OtType
. Read moreSource§unsafe fn mut_from_ot_mut_ptr<'a>(
ptr: *mut Self::OtType,
) -> Option<&'a mut Self>
unsafe fn mut_from_ot_mut_ptr<'a>( ptr: *mut Self::OtType, ) -> Option<&'a mut Self>
Creates a mut reference from a mut pointer to an
Self::OtType
. Read moreSource§fn as_ot_ref(&self) -> &Self::OtType
fn as_ot_ref(&self) -> &Self::OtType
Returns a reference to the original OpenThread type
Self::OtType
.Source§fn as_ot_mut(&mut self) -> &mut Self::OtType
fn as_ot_mut(&mut self) -> &mut Self::OtType
Returns a mutable reference to the original OpenThread type
Self::OtType
.Source§fn ref_from_ot_ref(x: &Self::OtType) -> &Self
fn ref_from_ot_ref(x: &Self::OtType) -> &Self
Casts a reference to the original OpenThread type to a reference to
Self
.Auto Trait Implementations§
impl Freeze for BorderRoutingCounters
impl RefUnwindSafe for BorderRoutingCounters
impl Send for BorderRoutingCounters
impl Sync for BorderRoutingCounters
impl Unpin for BorderRoutingCounters
impl UnwindSafe for BorderRoutingCounters
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)