pub enum EvalError {
Timeout,
Dns(Option<Box<dyn Error + Send + Sync>>),
LookupLimitExceeded,
PerMechanismLookupLimitExceeded,
VoidLookupLimitExceeded,
RecursiveTemperror,
RecursivePermerror,
IncludeNoSpfRecord,
InvalidName(String),
InvalidMacroInDomainSpec(Macro),
}
Expand description
Errors that may occur during query evaluation.
Variants§
Timeout
The query timed out.
Dns(Option<Box<dyn Error + Send + Sync>>)
A DNS error occurred, with source attached if available. The error
source may come from the Lookup
implementation and is therefore of an
arbitrary error type.
LookupLimitExceeded
The lookup limit was exceeded.
PerMechanismLookupLimitExceeded
The per-mechanism lookup limit was exceeded.
VoidLookupLimitExceeded
The void lookup limit was exceeded.
RecursiveTemperror
A recursive query that failed with Temperror
is being propagated.
RecursivePermerror
A recursive query that failed with Permerror
is being propagated.
IncludeNoSpfRecord
An include mechanism targeted a domain with no SPF record.
InvalidName(String)
A target domain name was in an invalid format.
InvalidMacroInDomainSpec(Macro)
A domain specification contained an invalid macro.
Trait Implementations§
Source§impl Error for EvalError
impl Error for EvalError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for EvalError
impl !RefUnwindSafe for EvalError
impl Send for EvalError
impl Sync for EvalError
impl Unpin for EvalError
impl !UnwindSafe for EvalError
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