Struct dns_resolver::ResolvOptions
source · [−]pub struct ResolvOptions {Show 17 fields
pub search: SearchList,
pub ndots: usize,
pub timeout: Duration,
pub attempts: usize,
pub aa_only: bool,
pub use_vc: bool,
pub primary: bool,
pub ign_tc: bool,
pub use_inet6: bool,
pub rotate: bool,
pub no_check_names: bool,
pub use_bstring: bool,
pub use_ip6dotint: bool,
pub use_edns0: bool,
pub single_request: bool,
pub single_request_reopen: bool,
pub no_tld_query: bool,
}Fields
search: SearchListndots: usizetimeout: Durationattempts: usizeaa_only: booluse_vc: boolprimary: boolign_tc: booluse_inet6: boolrotate: boolno_check_names: booluse_bstring: booluse_ip6dotint: booluse_edns0: boolsingle_request: boolsingle_request_reopen: boolno_tld_query: boolTrait Implementations
sourceimpl Clone for ResolvOptions
impl Clone for ResolvOptions
sourcefn clone(&self) -> ResolvOptions
fn clone(&self) -> ResolvOptions
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for ResolvOptions
impl Debug for ResolvOptions
Auto Trait Implementations
impl RefUnwindSafe for ResolvOptions
impl Send for ResolvOptions
impl Sync for ResolvOptions
impl Unpin for ResolvOptions
impl UnwindSafe for ResolvOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Source, Target> OctetsInto<Target> for Source where
Target: OctetsFrom<Source>,
impl<Source, Target> OctetsInto<Target> for Source where
Target: OctetsFrom<Source>,
sourcefn octets_into(self) -> Result<Target, ShortBuf>
fn octets_into(self) -> Result<Target, ShortBuf>
Performs the conversion.
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more