pub struct ServerSelector;Implementations§
Source§impl ServerSelector
impl ServerSelector
Sourcepub fn extract_whois_server(response: &str) -> Option<String>
pub fn extract_whois_server(response: &str) -> Option<String>
Extract WHOIS server from IANA response
Sourcepub fn select_server(
domain: &str,
use_dn42: bool,
use_bgptools: bool,
explicit_server: Option<&str>,
port: u16,
) -> WhoisServer
pub fn select_server( domain: &str, use_dn42: bool, use_bgptools: bool, explicit_server: Option<&str>, port: u16, ) -> WhoisServer
Select appropriate server based on query and options
Auto Trait Implementations§
impl Freeze for ServerSelector
impl RefUnwindSafe for ServerSelector
impl Send for ServerSelector
impl Sync for ServerSelector
impl Unpin for ServerSelector
impl UnwindSafe for ServerSelector
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
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