pub struct LogfileSelector { /* private fields */ }
Expand description
Used in LoggerHandle::existing_log_files
.
Example:
let all_log_files = logger_handle.existing_log_files(
&LogfileSelector::default()
.with_r_current()
.with_compressed_files()
);
Implementations§
Source§impl LogfileSelector
impl LogfileSelector
Sourcepub fn none() -> LogfileSelector
pub fn none() -> LogfileSelector
Selects no file at all.
Sourcepub fn with_r_current(self) -> LogfileSelector
pub fn with_r_current(self) -> LogfileSelector
Selects additionally the rCURRENT
file.
Sourcepub fn with_custom_current(self, s: &str) -> LogfileSelector
pub fn with_custom_current(self, s: &str) -> LogfileSelector
Selects additionally a custom “current” file.
Sourcepub fn with_compressed_files(self) -> LogfileSelector
pub fn with_compressed_files(self) -> LogfileSelector
Selects additionally the compressed log files.
Trait Implementations§
Source§impl Default for LogfileSelector
impl Default for LogfileSelector
Source§fn default() -> LogfileSelector
fn default() -> LogfileSelector
Selects plain log files without the rCURRENT
file.
Auto Trait Implementations§
impl Freeze for LogfileSelector
impl RefUnwindSafe for LogfileSelector
impl Send for LogfileSelector
impl Sync for LogfileSelector
impl Unpin for LogfileSelector
impl UnwindSafe for LogfileSelector
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