Struct trust_dns_proto::xfer::dns_request::DnsRequestOptions
source · pub struct DnsRequestOptions {
pub expects_multiple_responses: bool,
}
Expand description
A set of options for expressing options to how requests should be treated
Fields
expects_multiple_responses: bool
When true, the underlying DNS protocols will not return on the first response recieved.
Setting this option will cause the underlying protocol to await the timeout, and then return all Responses.
Trait Implementations
sourceimpl Clone for DnsRequestOptions
impl Clone for DnsRequestOptions
sourcefn clone(&self) -> DnsRequestOptions
fn clone(&self) -> DnsRequestOptions
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 moresourceimpl Default for DnsRequestOptions
impl Default for DnsRequestOptions
sourcefn default() -> DnsRequestOptions
fn default() -> DnsRequestOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for DnsRequestOptions
impl Send for DnsRequestOptions
impl Sync for DnsRequestOptions
impl Unpin for DnsRequestOptions
impl UnwindSafe for DnsRequestOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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