Args

Struct Args 

Source
pub struct Args {
Show 43 fields pub help: bool, pub format: OutputFormat, pub init: bool, pub reinit: bool, pub list_options: bool, pub config_path: Option<String>, pub no_config: bool, pub ascii_distro: Option<String>, pub ascii_colors: Option<String>, pub custom_ascii_path: Option<String>, pub battery_display: Option<String>, pub disk_display: Option<String>, pub disk_subtitle: Option<String>, pub memory_unit: Option<String>, pub package_managers: Option<String>, pub uptime_shorthand: Option<String>, pub os_age_shorthand: Option<String>, pub distro_display: Option<String>, pub color_blocks: Option<String>, pub cpu_temp: Option<String>, pub only_modules: Option<String>, pub hide_modules: Option<String>, pub memory_percent_on: bool, pub memory_percent_off: bool, pub cpu_show_temp_on: bool, pub cpu_show_temp_off: bool, pub cpu_speed_on: bool, pub cpu_speed_off: bool, pub cpu_frequency_on: bool, pub cpu_frequency_off: bool, pub cpu_cores_on: bool, pub cpu_cores_off: bool, pub cpu_brand_on: bool, pub cpu_brand_off: bool, pub shell_path_on: bool, pub shell_path_off: bool, pub shell_version_on: bool, pub shell_version_off: bool, pub refresh_rate_on: bool, pub refresh_rate_off: bool, pub de_version_on: bool, pub de_version_off: bool, pub ssh_hosts: Vec<String>,
}

Fields§

§help: bool

Show this help message and exit

§format: OutputFormat

Output format: pretty (default) or json

§init: bool

Create the default config file in ~/.config/leenfetch/

§reinit: bool

Reinitialize the config file to defaults

§list_options: bool

Show all available config options and values

§config_path: Option<String>

Load configuration from a custom file

§no_config: bool

Ignore config files and use built-in defaults

§ascii_distro: Option<String>§ascii_colors: Option<String>§custom_ascii_path: Option<String>§battery_display: Option<String>§disk_display: Option<String>§disk_subtitle: Option<String>§memory_unit: Option<String>§package_managers: Option<String>§uptime_shorthand: Option<String>§os_age_shorthand: Option<String>§distro_display: Option<String>§color_blocks: Option<String>§cpu_temp: Option<String>§only_modules: Option<String>§hide_modules: Option<String>§memory_percent_on: bool§memory_percent_off: bool§cpu_show_temp_on: bool§cpu_show_temp_off: bool§cpu_speed_on: bool§cpu_speed_off: bool§cpu_frequency_on: bool§cpu_frequency_off: bool§cpu_cores_on: bool§cpu_cores_off: bool§cpu_brand_on: bool§cpu_brand_off: bool§shell_path_on: bool§shell_path_off: bool§shell_version_on: bool§shell_version_off: bool§refresh_rate_on: bool§refresh_rate_off: bool§de_version_on: bool§de_version_off: bool§ssh_hosts: Vec<String>

Fetch info from remote hosts via SSH (e.g., user@host or host:port)

Implementations§

Trait Implementations§

Source§

impl Args for Args

Source§

fn group_id() -> Option<Id>

Report the ArgGroup::id for this set of arguments
Source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate Self via FromArgMatches::from_arg_matches_mut Read more
Source§

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 more
Source§

impl CommandFactory for Args

Source§

fn command<'b>() -> Command

Build a Command that can instantiate Self. Read more
Source§

fn command_for_update<'b>() -> Command

Build a Command that can update self. Read more
Source§

impl Debug for Args

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl FromArgMatches for Args

Source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

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>

Assign values from ArgMatches to self.
Source§

impl Parser for Args

Source§

fn parse() -> Self

Parse from std::env::args_os(), exit on error.
Source§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
Source§

fn parse_from<I, T>(itr: I) -> Self
where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,

Parse from iterator, exit on error.
Source§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
Source§

fn update_from<I, T>(&mut self, itr: I)
where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,

Update from iterator, exit on error. Read more
Source§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,

Update from iterator, return Err on error.

Auto Trait Implementations§

§

impl Freeze for Args

§

impl RefUnwindSafe for Args

§

impl Send for Args

§

impl Sync for Args

§

impl Unpin for Args

§

impl UnwindSafe for Args

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.