#[repr(transparent)]pub struct Nat64AddressMapping(pub otNat64AddressMapping);
Expand description
NAT64 Address Mapping, which is part of NAT64 telemetry
Tuple Fields§
§0: otNat64AddressMapping
Implementations§
Source§impl Nat64AddressMapping
impl Nat64AddressMapping
Sourcepub fn get_mapping_id(&self) -> u64
pub fn get_mapping_id(&self) -> u64
Get NAT64 mapping ID
Sourcepub fn get_ipv4_addr(&self) -> Ipv4Addr
pub fn get_ipv4_addr(&self) -> Ipv4Addr
Get IPv4 address
Sourcepub fn get_ipv6_addr(&self) -> Ipv6Addr
pub fn get_ipv6_addr(&self) -> Ipv6Addr
Get IPv6 address
Sourcepub fn get_remaining_time_ms(&self) -> u32
pub fn get_remaining_time_ms(&self) -> u32
Get the remaining time in ms
Sourcepub fn get_protocol_counters(&self) -> Nat64ProtocolCounters
pub fn get_protocol_counters(&self) -> Nat64ProtocolCounters
Get the protocol counters for this mapping
Trait Implementations§
Source§impl Clone for Nat64AddressMapping
impl Clone for Nat64AddressMapping
Source§fn clone(&self) -> Nat64AddressMapping
fn clone(&self) -> Nat64AddressMapping
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 Nat64AddressMapping
impl Debug for Nat64AddressMapping
Source§impl Default for Nat64AddressMapping
impl Default for Nat64AddressMapping
Source§fn default() -> Nat64AddressMapping
fn default() -> Nat64AddressMapping
Returns the “default value” for a type. Read more
Source§impl<'a> From<&'a Nat64AddressMapping> for &'a otNat64AddressMapping
impl<'a> From<&'a Nat64AddressMapping> for &'a otNat64AddressMapping
Source§fn from(x: &'a Nat64AddressMapping) -> Self
fn from(x: &'a Nat64AddressMapping) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a otNat64AddressMapping> for &'a Nat64AddressMapping
impl<'a> From<&'a otNat64AddressMapping> for &'a Nat64AddressMapping
Source§impl From<Nat64AddressMapping> for otNat64AddressMapping
impl From<Nat64AddressMapping> for otNat64AddressMapping
Source§fn from(x: Nat64AddressMapping) -> Self
fn from(x: Nat64AddressMapping) -> Self
Converts to this type from the input type.
Source§impl From<otNat64AddressMapping> for Nat64AddressMapping
impl From<otNat64AddressMapping> for Nat64AddressMapping
Source§impl OtCastable for Nat64AddressMapping
impl OtCastable for Nat64AddressMapping
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 Nat64AddressMapping
impl Transparent for Nat64AddressMapping
impl Copy for Nat64AddressMapping
Auto Trait Implementations§
impl Freeze for Nat64AddressMapping
impl RefUnwindSafe for Nat64AddressMapping
impl Send for Nat64AddressMapping
impl Sync for Nat64AddressMapping
impl Unpin for Nat64AddressMapping
impl UnwindSafe for Nat64AddressMapping
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
)