Struct whois_rust::WhoIs [−][src]
pub struct WhoIs { /* fields omitted */ }The WhoIs structure stores the list of WHOIS servers in-memory.
Implementations
impl WhoIs[src]
impl WhoIs[src]pub fn from_path<P: AsRef<Path>>(path: P) -> Result<WhoIs, WhoIsError>[src]
Read the list of WHOIS servers (JSON data) from a file to create a WhoIs instance.
pub async fn from_path_async<P: AsRef<Path>>(
path: P
) -> Result<WhoIs, WhoIsError>[src]
path: P
) -> Result<WhoIs, WhoIsError>
Read the list of WHOIS servers (JSON data) from a file to create a WhoIs instance. For serde_json doesn’t support async functions, consider just using the from_path function.
pub fn from_string<S: AsRef<str>>(string: S) -> Result<WhoIs, WhoIsError>[src]
Read the list of WHOIS servers (JSON data) from a string to create a WhoIs instance.
impl WhoIs[src]
impl WhoIs[src]pub fn lookup(&self, options: WhoIsLookupOptions) -> Result<String, WhoIsError>[src]
Lookup a domain or an IP.
impl WhoIs[src]
impl WhoIs[src]pub async fn lookup_async(
&self,
options: WhoIsLookupOptions
) -> Result<String, WhoIsError>[src]
&self,
options: WhoIsLookupOptions
) -> Result<String, WhoIsError>
Lookup a domain or an IP.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for WhoIs
impl RefUnwindSafe for WhoIsimpl UnwindSafe for WhoIs
impl UnwindSafe for WhoIs