pub struct WhoisServer {
pub host: String,
pub port: u16,
pub name: String,
}Fields§
§host: String§port: u16§name: StringImplementations§
Source§impl WhoisServer
impl WhoisServer
pub fn new(host: impl Into<String>, port: u16, name: impl Into<String>) -> Self
pub fn iana() -> Self
pub fn default() -> Self
pub fn dn42() -> Self
pub fn bgptools() -> Self
pub fn radb() -> Self
pub fn custom(host: impl Into<String>, port: u16) -> Self
pub fn address(&self) -> String
Trait Implementations§
Source§impl Clone for WhoisServer
impl Clone for WhoisServer
Source§fn clone(&self) -> WhoisServer
fn clone(&self) -> WhoisServer
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for WhoisServer
impl RefUnwindSafe for WhoisServer
impl Send for WhoisServer
impl Sync for WhoisServer
impl Unpin for WhoisServer
impl UnwindSafe for WhoisServer
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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