pub struct AvailabilityChecker { /* private fields */ }Expand description
Checks domain availability by attempting lookups and interpreting failures.
Implementations§
Source§impl AvailabilityChecker
impl AvailabilityChecker
pub fn new() -> Self
Sourcepub fn from_config(config: &SeerConfig) -> Self
pub fn from_config(config: &SeerConfig) -> Self
Builds a checker whose sub-clients honor the timeouts in config.
Sourcepub async fn check(&self, domain: &str) -> Result<AvailabilityResult>
pub async fn check(&self, domain: &str) -> Result<AvailabilityResult>
Check if a domain is available for registration.
A name below its registrable domain (mail.google.com) is never
reported available on the strength of the registry having no object
for it: its verdict comes from a check of the registrable parent
(google.com) instead, since only the parent can be registered.
Trait Implementations§
Source§impl Clone for AvailabilityChecker
impl Clone for AvailabilityChecker
Source§impl Debug for AvailabilityChecker
impl Debug for AvailabilityChecker
Auto Trait Implementations§
impl !RefUnwindSafe for AvailabilityChecker
impl !UnwindSafe for AvailabilityChecker
impl Freeze for AvailabilityChecker
impl Send for AvailabilityChecker
impl Sync for AvailabilityChecker
impl Unpin for AvailabilityChecker
impl UnsafeUnpin for AvailabilityChecker
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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