Function host_name

Source
pub fn host_name(_: &IoContext) -> Result<String>
Expand description

Get the current host name.

ยงExamples

use asyncio::IoContext;
use asyncio::ip::host_name;

let ctx = &IoContext::new().unwrap();
println!("{}", host_name(ctx).unwrap());