usestd::fmt;usecrate::sys;useheim_common::prelude::*;/// User currently connected to system.
////// See [os] module for OS-specific extensions.
////// [os]: ./os/index.html
#[derive(heim_derive::ImplWrap)]pubstructUser(sys::User);implUser{/// Returns the name of user.
pubfnusername(&self)->&str{self.as_ref().username()}}implfmt::Debug forUser{fnfmt(&self, f:&mutfmt::Formatter)->fmt::Result{
f.debug_struct("User").field("username",&self.username()).finish()}}/// Returns stream which yields [User]s.
////// [User]: ./struct.User.html
pubfnusers()-> impl Stream<Item = Result<User>>{sys::users().map_ok(Into::into)}