Function asyncio::ip::host_name [] [src]

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

Get the current host name.

Examples

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

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