pub struct QuerySetup { /* private fields */ }
Expand description
A query override instance.
Implementations§
Source§impl QuerySetup
impl QuerySetup
Sourcepub fn set_measure_time(&mut self, flag: bool) -> &mut Self
pub fn set_measure_time(&mut self, flag: bool) -> &mut Self
Turns on/off the time measurment whcih measure how many time went since query started for each response.
Sourcepub fn set_ign_hosts(&mut self, flag: bool) -> &mut Self
pub fn set_ign_hosts(&mut self, flag: bool) -> &mut Self
Turns on/off the option which when set is force to ignore lookup in /etc/hosts
Sourcepub fn set_override_timeout(&mut self, timeout: u32) -> &mut Self
pub fn set_override_timeout(&mut self, timeout: u32) -> &mut Self
Overrides the timeout. Can not be 0.
Sourcepub fn reset_override_timeout(&mut self) -> &mut Self
pub fn reset_override_timeout(&mut self) -> &mut Self
Resets the override timeout.
Trait Implementations§
Source§impl Clone for QuerySetup
impl Clone for QuerySetup
Source§fn clone(&self) -> QuerySetup
fn clone(&self) -> QuerySetup
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 Debug for QuerySetup
impl Debug for QuerySetup
Auto Trait Implementations§
impl Freeze for QuerySetup
impl RefUnwindSafe for QuerySetup
impl Send for QuerySetup
impl Sync for QuerySetup
impl Unpin for QuerySetup
impl UnwindSafe for QuerySetup
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