#[repr(transparent)]pub struct DnssdCounters(pub otDnssdCounters);
Expand description
This structure represents DNS-SD server counters.
Functional equivalent of otsys::otDnssdCounters
.
Tuple Fields§
§0: otDnssdCounters
Implementations§
Source§impl DnssdCounters
impl DnssdCounters
Sourcepub fn success_response(&self) -> u32
pub fn success_response(&self) -> u32
The number of successful responses.
Sourcepub fn server_failure_response(&self) -> u32
pub fn server_failure_response(&self) -> u32
The number of server failure responses.
Sourcepub fn format_error_response(&self) -> u32
pub fn format_error_response(&self) -> u32
The number of format error responses.
Sourcepub fn name_error_response(&self) -> u32
pub fn name_error_response(&self) -> u32
The number of name error responses.
Sourcepub fn not_implemented_response(&self) -> u32
pub fn not_implemented_response(&self) -> u32
The number of ‘not implemented’ responses.
Sourcepub fn other_response(&self) -> u32
pub fn other_response(&self) -> u32
The number of other responses.
Sourcepub fn resolved_by_srp(&self) -> u32
pub fn resolved_by_srp(&self) -> u32
The number of queries completely resolved by the local SRP server.
Sourcepub fn upstream_dns_counters(&self) -> UpstreamDnsCounters
pub fn upstream_dns_counters(&self) -> UpstreamDnsCounters
Represents the count of queries, responses, failures handled by upstream DNS server
Trait Implementations§
Source§impl Clone for DnssdCounters
impl Clone for DnssdCounters
Source§fn clone(&self) -> DnssdCounters
fn clone(&self) -> DnssdCounters
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 DnssdCounters
impl Debug for DnssdCounters
Source§impl Default for DnssdCounters
impl Default for DnssdCounters
Source§fn default() -> DnssdCounters
fn default() -> DnssdCounters
Returns the “default value” for a type. Read more
Source§impl<'a> From<&'a DnssdCounters> for &'a otDnssdCounters
impl<'a> From<&'a DnssdCounters> for &'a otDnssdCounters
Source§fn from(x: &'a DnssdCounters) -> Self
fn from(x: &'a DnssdCounters) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a otDnssdCounters> for &'a DnssdCounters
impl<'a> From<&'a otDnssdCounters> for &'a DnssdCounters
Source§impl From<DnssdCounters> for otDnssdCounters
impl From<DnssdCounters> for otDnssdCounters
Source§fn from(x: DnssdCounters) -> Self
fn from(x: DnssdCounters) -> Self
Converts to this type from the input type.
Source§impl From<otDnssdCounters> for DnssdCounters
impl From<otDnssdCounters> for DnssdCounters
Source§impl OtCastable for DnssdCounters
impl OtCastable for DnssdCounters
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 DnssdCounters
impl RefUnwindSafe for DnssdCounters
impl Send for DnssdCounters
impl Sync for DnssdCounters
impl Unpin for DnssdCounters
impl UnwindSafe for DnssdCounters
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
)