#[repr(C)]pub struct otDnssdServiceInstanceInfo {
pub mFullName: *const c_char,
pub mHostName: *const c_char,
pub mAddressNum: u8,
pub mAddresses: *const otIp6Address,
pub mPort: u16,
pub mPriority: u16,
pub mWeight: u16,
pub mTxtLength: u16,
pub mTxtData: *const u8,
pub mTtl: u32,
}
Expand description
Represents information of a discovered service instance for a DNS-SD query.
Fields§
§mFullName: *const c_char
< Full instance name (e.g. “OpenThread._ipps._tcp.default.service.arpa.”).
mHostName: *const c_char
< Host name (e.g. “ot-host.default.service.arpa.”).
mAddressNum: u8
< Number of host IPv6 addresses.
mAddresses: *const otIp6Address
< Host IPv6 addresses.
mPort: u16
< Service port.
mPriority: u16
< Service priority.
mWeight: u16
< Service weight.
mTxtLength: u16
< Service TXT RDATA length.
mTxtData: *const u8
< Service TXT RDATA.
mTtl: u32
< Service TTL (in seconds).
Trait Implementations§
Source§impl Clone for otDnssdServiceInstanceInfo
impl Clone for otDnssdServiceInstanceInfo
Source§fn clone(&self) -> otDnssdServiceInstanceInfo
fn clone(&self) -> otDnssdServiceInstanceInfo
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 otDnssdServiceInstanceInfo
impl Debug for otDnssdServiceInstanceInfo
Source§impl Default for otDnssdServiceInstanceInfo
impl Default for otDnssdServiceInstanceInfo
impl Copy for otDnssdServiceInstanceInfo
Auto Trait Implementations§
impl Freeze for otDnssdServiceInstanceInfo
impl RefUnwindSafe for otDnssdServiceInstanceInfo
impl !Send for otDnssdServiceInstanceInfo
impl !Sync for otDnssdServiceInstanceInfo
impl Unpin for otDnssdServiceInstanceInfo
impl UnwindSafe for otDnssdServiceInstanceInfo
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
)