#[repr(transparent)]pub struct Nat64Counters(pub otNat64Counters);
Expand description
Represents the counters for NAT64
Tuple Fields§
§0: otNat64Counters
Implementations§
Source§impl Nat64Counters
impl Nat64Counters
Sourcepub fn get_4_to_6_packets(&self) -> u64
pub fn get_4_to_6_packets(&self) -> u64
Get IPv4 to IPv6 packets
Sourcepub fn get_4_to_6_bytes(&self) -> u64
pub fn get_4_to_6_bytes(&self) -> u64
Get IPv4 to IPv6 bytes
Sourcepub fn get_6_to_4_packets(&self) -> u64
pub fn get_6_to_4_packets(&self) -> u64
Get IPv6 to IPv4 packets
Sourcepub fn get_6_to_4_bytes(&self) -> u64
pub fn get_6_to_4_bytes(&self) -> u64
Get IPv6 to IPv4 bytes
Trait Implementations§
Source§impl Clone for Nat64Counters
impl Clone for Nat64Counters
Source§fn clone(&self) -> Nat64Counters
fn clone(&self) -> Nat64Counters
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 Nat64Counters
impl Debug for Nat64Counters
Source§impl Default for Nat64Counters
impl Default for Nat64Counters
Source§fn default() -> Nat64Counters
fn default() -> Nat64Counters
Returns the “default value” for a type. Read more
Source§impl<'a> From<&'a Nat64Counters> for &'a otNat64Counters
impl<'a> From<&'a Nat64Counters> for &'a otNat64Counters
Source§fn from(x: &'a Nat64Counters) -> Self
fn from(x: &'a Nat64Counters) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a otNat64Counters> for &'a Nat64Counters
impl<'a> From<&'a otNat64Counters> for &'a Nat64Counters
Source§impl From<Nat64Counters> for otNat64Counters
impl From<Nat64Counters> for otNat64Counters
Source§fn from(x: Nat64Counters) -> Self
fn from(x: Nat64Counters) -> Self
Converts to this type from the input type.
Source§impl From<otNat64Counters> for Nat64Counters
impl From<otNat64Counters> for Nat64Counters
Source§impl OtCastable for Nat64Counters
impl OtCastable for Nat64Counters
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
.Source§impl Transparent for Nat64Counters
impl Transparent for Nat64Counters
impl Copy for Nat64Counters
Auto Trait Implementations§
impl Freeze for Nat64Counters
impl RefUnwindSafe for Nat64Counters
impl Send for Nat64Counters
impl Sync for Nat64Counters
impl Unpin for Nat64Counters
impl UnwindSafe for Nat64Counters
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
)