[][src]Function librelic::prelude::sys::user::name

pub fn name() -> Result<String, FuError>

Returns the current user's name.

Examples

use fungus::prelude::*;

println!("current user name: {:?}", user::name().unwrap());