pub struct RollingConditionBase { /* private fields */ }
Implementations§
Source§impl 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§
Source§impl Clone for RollingConditionBase
impl Clone for RollingConditionBase
Source§fn clone(&self) -> RollingConditionBase
fn clone(&self) -> RollingConditionBase
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 RollingConditionBase
impl Debug for RollingConditionBase
Source§impl Default for RollingConditionBase
impl Default for RollingConditionBase
Source§impl PartialEq for RollingConditionBase
impl PartialEq for RollingConditionBase
impl Copy for RollingConditionBase
impl Eq for RollingConditionBase
impl StructuralPartialEq for RollingConditionBase
Auto Trait Implementations§
impl Freeze for RollingConditionBase
impl RefUnwindSafe for RollingConditionBase
impl Send for RollingConditionBase
impl Sync for RollingConditionBase
impl Unpin for RollingConditionBase
impl UnwindSafe for RollingConditionBase
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