pub struct WhoisQuery { /* private fields */ }Implementations§
Source§impl WhoisQuery
impl WhoisQuery
pub fn new(verbose: bool) -> Self
Sourcepub fn query_direct(&self, query: &str, server: &WhoisServer) -> Result<String>
pub fn query_direct(&self, query: &str, server: &WhoisServer) -> Result<String>
Perform a direct WHOIS query to a specific server
Sourcepub fn query_with_referral(
&self,
query: &str,
initial_server: &WhoisServer,
) -> Result<QueryResult>
pub fn query_with_referral( &self, query: &str, initial_server: &WhoisServer, ) -> Result<QueryResult>
Perform a WHOIS query with IANA referral if needed
Sourcepub fn query(
&self,
domain: &str,
use_dn42: bool,
use_bgptools: bool,
explicit_server: Option<&str>,
port: u16,
) -> Result<QueryResult>
pub fn query( &self, domain: &str, use_dn42: bool, use_bgptools: bool, explicit_server: Option<&str>, port: u16, ) -> Result<QueryResult>
Main query method that handles all logic
Sourcepub fn query_with_enhanced_protocol(
&self,
domain: &str,
use_dn42: bool,
use_bgptools: bool,
use_server_color: bool,
enable_markdown: bool,
enable_images: bool,
explicit_server: Option<&str>,
port: u16,
preferred_color_scheme: Option<&str>,
) -> Result<QueryResult>
pub fn query_with_enhanced_protocol( &self, domain: &str, use_dn42: bool, use_bgptools: bool, use_server_color: bool, enable_markdown: bool, enable_images: bool, explicit_server: Option<&str>, port: u16, preferred_color_scheme: Option<&str>, ) -> Result<QueryResult>
Query with enhanced protocol support (v1.1 with markdown and images)
Auto Trait Implementations§
impl Freeze for WhoisQuery
impl RefUnwindSafe for WhoisQuery
impl Send for WhoisQuery
impl Sync for WhoisQuery
impl Unpin for WhoisQuery
impl UnwindSafe for WhoisQuery
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