Struct tracing_rolling_file::base::RollingConditionBase
source · [−]pub struct RollingConditionBase { /* private fields */ }
Implementations
sourceimpl RollingConditionBase
impl RollingConditionBase
sourcepub fn new() -> RollingConditionBase
pub fn new() -> RollingConditionBase
Constructs a new struct that does not yet have any condition set.
sourcepub fn frequency(self, x: RollingFrequency) -> RollingConditionBase
pub fn frequency(self, x: RollingFrequency) -> RollingConditionBase
Sets a condition to rollover on the given frequency
sourcepub fn daily(self) -> RollingConditionBase
pub fn daily(self) -> RollingConditionBase
Sets a condition to rollover when the date changes
sourcepub fn hourly(self) -> RollingConditionBase
pub fn hourly(self) -> RollingConditionBase
Sets a condition to rollover when the date or hour changes
sourcepub fn minutely(self) -> RollingConditionBase
pub fn minutely(self) -> RollingConditionBase
Sets a condition to rollover when the date or minute changes
sourcepub fn max_size(self, x: u64) -> RollingConditionBase
pub fn max_size(self, x: u64) -> RollingConditionBase
Sets a condition to rollover when a certain size is reached
Trait Implementations
sourceimpl Clone for RollingConditionBase
impl Clone for RollingConditionBase
sourcefn clone(&self) -> RollingConditionBase
fn clone(&self) -> RollingConditionBase
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for RollingConditionBase
impl Debug for RollingConditionBase
sourceimpl Default for RollingConditionBase
impl Default for RollingConditionBase
sourceimpl PartialEq<RollingConditionBase> for RollingConditionBase
impl PartialEq<RollingConditionBase> for RollingConditionBase
sourcefn eq(&self, other: &RollingConditionBase) -> bool
fn eq(&self, other: &RollingConditionBase) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &RollingConditionBase) -> bool
fn ne(&self, other: &RollingConditionBase) -> bool
This method tests for !=
.
impl Copy for RollingConditionBase
impl Eq for RollingConditionBase
impl StructuralEq for RollingConditionBase
impl StructuralPartialEq for RollingConditionBase
Auto Trait Implementations
impl RefUnwindSafe for RollingConditionBase
impl Send for RollingConditionBase
impl Sync for RollingConditionBase
impl Unpin for RollingConditionBase
impl UnwindSafe for RollingConditionBase
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more