pub struct LoggingOpts {
pub local_time_opts: LocalTimeOpts,
pub max_log_file_size: u64,
pub max_log_files: Option<u32>,
}Fields§
§local_time_opts: LocalTimeOpts§max_log_file_size: u64The maximum size of the ‘current.log’ file in bytes before it is renamed and a new one opened.
max_log_files: Option<u32>The maximum number of numbered log files (i.e. excluding
current.log) before the oldest are deleted. Careful: as
many files are deleted as needed as necessary to get their
count down to the given number (giving 0 it will delete them
all)! None means, no files are ever deleted.
Implementations§
Source§impl LoggingOpts
impl LoggingOpts
pub fn local_time(&self, default: bool) -> bool
Trait Implementations§
Source§impl Args for LoggingOpts
impl Args for LoggingOpts
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§impl Clone for LoggingOpts
impl Clone for LoggingOpts
Source§fn clone(&self) -> LoggingOpts
fn clone(&self) -> LoggingOpts
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LoggingOpts
impl Debug for LoggingOpts
Source§impl Default for LoggingOpts
impl Default for LoggingOpts
Source§fn default() -> LoggingOpts
fn default() -> LoggingOpts
Returns the “default value” for a type. Read more
Source§impl FromArgMatches for LoggingOpts
impl FromArgMatches for LoggingOpts
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 Freeze for LoggingOpts
impl RefUnwindSafe for LoggingOpts
impl Send for LoggingOpts
impl Sync for LoggingOpts
impl Unpin for LoggingOpts
impl UnwindSafe for LoggingOpts
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