[][src]Function fungus::sys::user::name

pub fn name() -> FuResult<String>

Returns the current user's name.

Examples

use fungus::prelude::*;

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