[][src]Struct viaspf::Config

pub struct Config { /* fields omitted */ }

An SPF query configuration.

Implementations

impl Config[src]

pub fn builder() -> ConfigBuilder[src]

Creates a builder for configurations.

pub fn max_void_lookups(&self) -> usize[src]

The maximum number of void lookups allowed.

pub fn timeout(&self) -> Duration[src]

The duration until a query times out.

pub fn default_explanation(&self) -> Option<&ExplainString>[src]

The explain string from which to compute the default explanation when a Fail result is returned.

pub fn modify_exp_fn(
    &self
) -> Option<&impl Fn(&mut ExplainString) + Send + Sync>
[src]

The function to apply to explain strings originating from the DNS via an exp modifier.

pub fn hostname(&self) -> Option<&str>[src]

The hostname of the SPF verifier.

pub fn capture_trace(&self) -> bool[src]

Whether to capture a trace during query execution.

Trait Implementations

impl Debug for Config[src]

impl Default for Config[src]

impl From<ConfigBuilder> for Config[src]

Auto Trait Implementations

impl !RefUnwindSafe for Config

impl Send for Config

impl Sync for Config

impl Unpin for Config

impl !UnwindSafe for Config

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.