[−][src]Struct viaspf::Config
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]
&self
) -> Option<&impl Fn(&mut ExplainString) + Send + Sync>
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]
pub fn from(builder: ConfigBuilder) -> Self
[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,