Struct log4rs::append::rolling_file::policy::compound::trigger::size::SizeTrigger
source · pub struct SizeTrigger { /* private fields */ }
Expand description
A trigger which rolls the log once it has passed a certain size.
Implementations§
source§impl SizeTrigger
impl SizeTrigger
sourcepub fn new(limit: u64) -> SizeTrigger
pub fn new(limit: u64) -> SizeTrigger
Returns a new trigger which rolls the log once it has passed the specified size in bytes.
Trait Implementations§
source§impl Clone for SizeTrigger
impl Clone for SizeTrigger
source§fn clone(&self) -> SizeTrigger
fn clone(&self) -> SizeTrigger
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 SizeTrigger
impl Debug for SizeTrigger
source§impl Default for SizeTrigger
impl Default for SizeTrigger
source§fn default() -> SizeTrigger
fn default() -> SizeTrigger
Returns the “default value” for a type. Read more
source§impl Hash for SizeTrigger
impl Hash for SizeTrigger
source§impl PartialEq for SizeTrigger
impl PartialEq for SizeTrigger
source§fn eq(&self, other: &SizeTrigger) -> bool
fn eq(&self, other: &SizeTrigger) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Trigger for SizeTrigger
impl Trigger for SizeTrigger
impl Copy for SizeTrigger
impl Eq for SizeTrigger
impl StructuralPartialEq for SizeTrigger
Auto Trait Implementations§
impl RefUnwindSafe for SizeTrigger
impl Send for SizeTrigger
impl Sync for SizeTrigger
impl Unpin for SizeTrigger
impl UnwindSafe for SizeTrigger
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.