pub struct ResolvConfOptions {
pub timeout: Option<Duration>,
pub attempts: Option<u8>,
pub rotate: Option<bool>,
}Expand description
Options to change the behavior of a DNS client based on a resolv.conf file.
Note that only a subset of options are supported.
Fields§
§timeout: Option<Duration>§attempts: Option<u8>§rotate: Option<bool>Trait Implementations§
Source§impl Clone for ResolvConfOptions
impl Clone for ResolvConfOptions
Source§fn clone(&self) -> ResolvConfOptions
fn clone(&self) -> ResolvConfOptions
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 moreSource§impl Debug for ResolvConfOptions
impl Debug for ResolvConfOptions
Source§impl Default for ResolvConfOptions
impl Default for ResolvConfOptions
Source§fn default() -> ResolvConfOptions
fn default() -> ResolvConfOptions
Returns the “default value” for a type. Read more
Source§impl PartialEq for ResolvConfOptions
impl PartialEq for ResolvConfOptions
impl Eq for ResolvConfOptions
impl StructuralPartialEq for ResolvConfOptions
Auto Trait Implementations§
impl Freeze for ResolvConfOptions
impl RefUnwindSafe for ResolvConfOptions
impl Send for ResolvConfOptions
impl Sync for ResolvConfOptions
impl Unpin for ResolvConfOptions
impl UnwindSafe for ResolvConfOptions
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