Struct whois::WhoIs
[−]
[src]
pub struct WhoIs { /* fields omitted */ }
Methods
impl WhoIs
[src]
fn new(x: String) -> WhoIs
fn lookup(&mut self) -> Result<String, &'static str>
This function will get whois server from the get_server
function decide the appropriate
query for the server and parse the whois data into JSON by calling parse_data()
If there is another whois server in the whois data then it calls 'parse_whois'
so it can get the whois data from that