#[repr(C)]pub struct otPlatTrelPeerInfo {
pub mRemoved: bool,
pub mTxtData: *const u8,
pub mTxtLength: u16,
pub mSockAddr: otSockAddr,
}
Expand description
Represents a TREL peer info discovered using DNS-SD browse on the service name “_trel._udp”.
Fields§
§mRemoved: bool
This boolean flag indicates whether the entry is being removed or added.
- TRUE indicates that peer is removed.
- FALSE indicates that it is a new entry or an update to an existing entry.
mTxtData: *const u8
The TXT record data (encoded as specified by DNS-SD) from the SRV record of the discovered TREL peer service instance.
mTxtLength: u16
< Number of bytes in @p mTxtData buffer.
mSockAddr: otSockAddr
The TREL peer socket address (IPv6 address and port number).
The port number is determined from the SRV record of the discovered TREL peer service instance. The IPv6 address is determined from the DNS-SD query for AAAA records on the hostname indicated in the SRV record of the discovered service instance. If multiple host IPv6 addressees are discovered, one with highest scope is used.
Trait Implementations§
Source§impl Clone for otPlatTrelPeerInfo
impl Clone for otPlatTrelPeerInfo
Source§fn clone(&self) -> otPlatTrelPeerInfo
fn clone(&self) -> otPlatTrelPeerInfo
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 Default for otPlatTrelPeerInfo
impl Default for otPlatTrelPeerInfo
impl Copy for otPlatTrelPeerInfo
Auto Trait Implementations§
impl Freeze for otPlatTrelPeerInfo
impl RefUnwindSafe for otPlatTrelPeerInfo
impl !Send for otPlatTrelPeerInfo
impl !Sync for otPlatTrelPeerInfo
impl Unpin for otPlatTrelPeerInfo
impl UnwindSafe for otPlatTrelPeerInfo
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
)