pub struct Auditor { /* private fields */ }Expand description
Runs the audit. Build once and reuse: it owns the clients.
Implementations§
Source§impl Auditor
impl Auditor
Sourcepub fn from_config(config: &SeerConfig) -> Self
pub fn from_config(config: &SeerConfig) -> Self
An auditor using the configured timeouts and resolver.
Sourcepub async fn audit(
&self,
input: &str,
options: AuditOptions,
) -> Result<AuditReport>
pub async fn audit( &self, input: &str, options: AuditOptions, ) -> Result<AuditReport>
Audits input (a domain or host).
§Errors
Only for input that fails normalization; every check failure is
reported inside the AuditReport as an incomplete check.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Auditor
impl !UnwindSafe for Auditor
impl Freeze for Auditor
impl Send for Auditor
impl Sync for Auditor
impl Unpin for Auditor
impl UnsafeUnpin for Auditor
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§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
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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> ⓘ
Converts
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> ⓘ
Converts
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