pub struct WhoConfig {Show 16 fields
pub show_boot: bool,
pub show_dead: bool,
pub show_heading: bool,
pub show_login: bool,
pub only_current: bool,
pub show_init_spawn: bool,
pub show_count: bool,
pub show_runlevel: bool,
pub short_format: bool,
pub show_clock_change: bool,
pub show_mesg: bool,
pub show_users: bool,
pub show_all: bool,
pub show_ips: bool,
pub show_lookup: bool,
pub am_i: bool,
}Expand description
Configuration for the who command, derived from CLI flags.
Fields§
§show_boot: bool§show_dead: bool§show_heading: bool§show_login: bool§only_current: bool§show_init_spawn: bool§show_count: bool§show_runlevel: bool§short_format: bool§show_clock_change: bool§show_mesg: bool§show_users: bool§show_all: bool§show_ips: bool§show_lookup: bool§am_i: boolImplementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WhoConfig
impl RefUnwindSafe for WhoConfig
impl Send for WhoConfig
impl Sync for WhoConfig
impl Unpin for WhoConfig
impl UnsafeUnpin for WhoConfig
impl UnwindSafe for WhoConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more