pub struct GlobalOpts {
pub config: Option<PathBuf>,
pub no_learn: bool,
pub plain: bool,
pub ascii: bool,
pub theme: Option<String>,
pub color: Option<ColorArg>,
pub offline: bool,
pub replay: Option<PathBuf>,
pub set: Vec<String>,
}Expand description
Flags accepted by every subcommand.
Fields§
§config: Option<PathBuf>Config file to use instead of ~/.config/oomtop/config.toml (drop-ins are read next to it).
no_learn: boolDon’t learn from this session (personalization off). Also OOMTOP_NO_LEARN=1.
plain: boolLinear, screen-reader-friendly output instead of the TUI.
ascii: boolASCII glyphs only.
theme: Option<String>Theme name (overrides appearance.theme for this run).
color: Option<ColorArg>Color depth (overrides appearance.color for this run).
offline: boolDon’t contact local adapter endpoints (process-level detection only).
replay: Option<PathBuf>Replay a recorded fixture instead of sampling this machine (actions are disabled).
set: Vec<String>Override any setting for this run, e.g. –set appearance.theme=none (repeatable).
Trait Implementations§
Source§impl Args for GlobalOpts
impl Args for GlobalOpts
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Clone for GlobalOpts
impl Clone for GlobalOpts
Source§impl Debug for GlobalOpts
impl Debug for GlobalOpts
Source§impl Default for GlobalOpts
impl Default for GlobalOpts
Source§impl FromArgMatches for GlobalOpts
impl FromArgMatches for GlobalOpts
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Auto Trait Implementations§
impl Forget for GlobalOpts
impl Freeze for GlobalOpts
impl Move for GlobalOpts
impl RefUnwindSafe for GlobalOpts
impl Send for GlobalOptswhere
RawVecInner: Send,
impl Sync for GlobalOptswhere
RawVecInner: Sync,
impl Unpin for GlobalOpts
impl UnsafeUnpin for GlobalOptswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for GlobalOptswhere
RawVecInner: UnwindSafe,
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