Enum log4rs::append::rolling_file::policy::compound::trigger::time::TimeTriggerInterval
source · pub enum TimeTriggerInterval {
Second(i64),
Minute(i64),
Hour(i64),
Day(i64),
Week(i64),
Month(i64),
Year(i64),
}
Expand description
The TimeTrigger supports the following units (case insensitive): “second”, “seconds”, “minute”, “minutes”, “hour”, “hours”, “day”, “days”, “week”, “weeks”, “month”, “months”, “year”, “years”. The unit defaults to second if not specified.
Variants§
Second(i64)
TimeTriger in second(s).
Minute(i64)
TimeTriger in minute(s).
Hour(i64)
TimeTriger in hour(s).
Day(i64)
TimeTriger in day(s).
Week(i64)
TimeTriger in week(s).
Month(i64)
TimeTriger in month(s).
Year(i64)
TimeTriger in year(s).
Trait Implementations§
source§impl Clone for TimeTriggerInterval
impl Clone for TimeTriggerInterval
source§fn clone(&self) -> TimeTriggerInterval
fn clone(&self) -> TimeTriggerInterval
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 TimeTriggerInterval
impl Debug for TimeTriggerInterval
source§impl Default for TimeTriggerInterval
impl Default for TimeTriggerInterval
source§impl<'de> Deserialize<'de> for TimeTriggerInterval
impl<'de> Deserialize<'de> for TimeTriggerInterval
source§fn deserialize<D>(d: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(d: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for TimeTriggerInterval
impl Hash for TimeTriggerInterval
source§impl PartialEq for TimeTriggerInterval
impl PartialEq for TimeTriggerInterval
source§fn eq(&self, other: &TimeTriggerInterval) -> bool
fn eq(&self, other: &TimeTriggerInterval) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for TimeTriggerInterval
impl Eq for TimeTriggerInterval
impl StructuralPartialEq for TimeTriggerInterval
Auto Trait Implementations§
impl RefUnwindSafe for TimeTriggerInterval
impl Send for TimeTriggerInterval
impl Sync for TimeTriggerInterval
impl Unpin for TimeTriggerInterval
impl UnwindSafe for TimeTriggerInterval
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.