Struct wallswitch::Arguments
source · pub struct Arguments {
pub config: bool,
pub min_dimension: Option<u64>,
pub max_dimension: Option<u64>,
pub min_size: Option<u64>,
pub max_size: Option<u64>,
pub interval: Option<u64>,
pub monitor: Option<u8>,
pub sort: bool,
pub verbose: bool,
}Expand description
Command line arguments
Fields§
§config: boolRead the configuration file and exit the program.
min_dimension: Option<u64>Set the minimum dimension that the height and width must satisfy.
width >= min_dimension && height >= min_dimension
Default value: min_dimension = 600.
max_dimension: Option<u64>Set the maximum dimension that the height and width must satisfy.
width <= max_dimension && height <= max_dimension
min_size: Option<u64>Set a minimum file size (in bytes) for searching image files.
keep files whose size is greater than or equal to a minimum value.
size >= min_size
max_size: Option<u64>Set a maximum file size (in bytes) for searching image files.
keep files whose size is less than or equal to a maximum value.
size <= max_size
interval: Option<u64>Set the interval (in seconds) between each wallpaper displayed.
Default value: interval = 30 * 60 = 1800 seconds (30 minutes).
monitor: Option<u8>Set the number of monitors [default: 2]
sort: boolSort the images found.
verbose: boolShow intermediate runtime messages.
Show found images.
Show pid numbers of previous running program.
Implementations§
Trait Implementations§
source§impl CommandFactory for Arguments
impl CommandFactory for Arguments
source§impl FromArgMatches for Arguments
impl FromArgMatches for Arguments
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>
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>
ArgMatches to self.source§impl Parser for Arguments
impl Parser for Arguments
source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Auto Trait Implementations§
impl Freeze for Arguments
impl RefUnwindSafe for Arguments
impl Send for Arguments
impl Sync for Arguments
impl Unpin for Arguments
impl UnwindSafe for Arguments
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)