Struct openthread_sys::otDnsQueryConfig
source · #[repr(C)]pub struct otDnsQueryConfig {
pub mServerSockAddr: otSockAddr,
pub mResponseTimeout: u32,
pub mMaxTxAttempts: u8,
pub mRecursionFlag: otDnsRecursionFlag,
pub mNat64Mode: otDnsNat64Mode,
pub mServiceMode: otDnsServiceMode,
pub mTransportProto: otDnsTransportProto,
}
Expand description
Represents a DNS query configuration.
Any of the fields in this structure can be set to zero to indicate that it is not specified. How the unspecified
fields are treated is determined by the function which uses the instance of otDnsQueryConfig
.
Fields§
§mServerSockAddr: otSockAddr
< Server address (IPv6 addr/port). All zero or zero port for unspecified.
mResponseTimeout: u32
< Wait time (in msec) to rx response. Zero indicates unspecified value.
mMaxTxAttempts: u8
< Maximum tx attempts before reporting failure. Zero for unspecified value.
mRecursionFlag: otDnsRecursionFlag
< Indicates whether the server can resolve the query recursively or not.
mNat64Mode: otDnsNat64Mode
< Allow/Disallow NAT64 address translation during address resolution.
mServiceMode: otDnsServiceMode
< Determines which records to query during service resolution.
mTransportProto: otDnsTransportProto
< Select default transport protocol.
Trait Implementations§
source§impl Clone for otDnsQueryConfig
impl Clone for otDnsQueryConfig
source§fn clone(&self) -> otDnsQueryConfig
fn clone(&self) -> otDnsQueryConfig
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 otDnsQueryConfig
impl Default for otDnsQueryConfig
impl Copy for otDnsQueryConfig
Auto Trait Implementations§
impl Freeze for otDnsQueryConfig
impl RefUnwindSafe for otDnsQueryConfig
impl Send for otDnsQueryConfig
impl Sync for otDnsQueryConfig
impl Unpin for otDnsQueryConfig
impl UnwindSafe for otDnsQueryConfig
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
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
)