#[repr(C)]pub struct otHistoryTrackerDnsSrpAddrInfo {
pub mAddress: otIp6Address,
pub mRloc16: u16,
pub mPort: u16,
pub mSequenceNumber: u8,
pub mVersion: u8,
pub mType: otHistoryTrackerDnsSrpAddrType,
pub mEvent: otHistoryTrackerNetDataEvent,
}Expand description
Represents DNS/SRP server address information parsed from a Network Data service entry.
The mType field specifies the entry type. Some fields are only applicable to specific types.
- The
mPortfield is only applicable forOT_HISTORY_TRACKER_DNS_SRP_ADDR_TYPE_UNICAST_*types. - The
mSequenceNumberfield is only applicable for theOT_HISTORY_TRACKER_DNS_SRP_ADDR_TYPE_ANYCASTtype. - Other fields are common and used for all address types.
Fields§
§mAddress: otIp6Address< The server address.
mRloc16: u16< The RLOC16 of the Border Router adding/removing the entry.
mPort: u16< Port number.
mSequenceNumber: u8< Anycast sequence number.
mVersion: u8< Version number.
mType: otHistoryTrackerDnsSrpAddrType< Address type.
mEvent: otHistoryTrackerNetDataEvent< Indicates the event (added/removed).
Trait Implementations§
Source§impl Clone for otHistoryTrackerDnsSrpAddrInfo
impl Clone for otHistoryTrackerDnsSrpAddrInfo
Source§fn clone(&self) -> otHistoryTrackerDnsSrpAddrInfo
fn clone(&self) -> otHistoryTrackerDnsSrpAddrInfo
Returns a duplicate 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 moreimpl Copy for otHistoryTrackerDnsSrpAddrInfo
Auto Trait Implementations§
impl Freeze for otHistoryTrackerDnsSrpAddrInfo
impl RefUnwindSafe for otHistoryTrackerDnsSrpAddrInfo
impl Send for otHistoryTrackerDnsSrpAddrInfo
impl Sync for otHistoryTrackerDnsSrpAddrInfo
impl Unpin for otHistoryTrackerDnsSrpAddrInfo
impl UnsafeUnpin for otHistoryTrackerDnsSrpAddrInfo
impl UnwindSafe for otHistoryTrackerDnsSrpAddrInfo
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