Struct DnsRequestOptions
#[non_exhaustive]pub struct DnsRequestOptions {
pub use_edns: bool,
pub edns_payload_len: u16,
pub edns_set_dnssec_ok: bool,
pub max_request_depth: usize,
pub recursion_desired: bool,
pub case_randomization: bool,
pub retry_interval: Duration,
}Expand description
A set of options for expressing options to how requests should be treated
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.use_edns: boolWhen true, will add EDNS options to the request.
edns_payload_len: u16EDNS UDP payload size.
Sets the requestor’s UDP payload size in the EDNS(0) OPT pseudo-RR in outgoing requests. This tells other servers when they need to truncate their responses. Smaller payload sizes require more queries with large responses to be retried over TCP, while larger payload sizes lead to large responses being fragmented or dropped if they exceed the MTU of a network.
See https://www.dnsflagday.net/2020/ and RFC 9715 for discussion.
edns_set_dnssec_ok: boolWhen true, sets the DO bit in the EDNS options
max_request_depth: usizeSpecifies maximum request depth for DNSSEC validation.
recursion_desired: boolset recursion desired (or not) for any requests
case_randomization: boolRandomize case of query name, and check that the response matches, for spoofing resistance.
retry_interval: DurationRetry interval for unreliable transport protocols (plain UDP). Any value lower than the retry_interval_floor value set by a protocol implementer will effectively be ignored, but higher values will result in less frequent retries.
Trait Implementations§
§impl Clone for DnsRequestOptions
impl Clone for DnsRequestOptions
§fn clone(&self) -> DnsRequestOptions
fn clone(&self) -> DnsRequestOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl Debug for DnsRequestOptions
impl Debug for DnsRequestOptions
§impl Default for DnsRequestOptions
impl Default for DnsRequestOptions
§fn default() -> DnsRequestOptions
fn default() -> DnsRequestOptions
§impl PartialEq for DnsRequestOptions
impl PartialEq for DnsRequestOptions
impl Copy for DnsRequestOptions
impl Eq for DnsRequestOptions
impl StructuralPartialEq for DnsRequestOptions
Auto Trait Implementations§
impl Freeze for DnsRequestOptions
impl RefUnwindSafe for DnsRequestOptions
impl Send for DnsRequestOptions
impl Sync for DnsRequestOptions
impl Unpin for DnsRequestOptions
impl UnsafeUnpin for DnsRequestOptions
impl UnwindSafe for DnsRequestOptions
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a rama_grpc::Request§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§fn and<P, B, E>(self, other: P) -> And<T, P>
fn and<P, B, E>(self, other: P) -> And<T, P>
Policy that returns Action::Follow only if self and other return
Action::Follow. Read more