Struct log4rs::append::rolling_file::policy::compound::trigger::size::SizeTriggerDeserializer
source · pub struct SizeTriggerDeserializer;
Expand description
A deserializer for the SizeTrigger
.
§Configuration
kind: size
# The size limit in bytes. The following units are supported (case insensitive):
# "b", "kb", "kib", "mb", "mib", "gb", "gib", "tb", "tib". The unit defaults to
# bytes if not specified. Required.
limit: 10 mb
Trait Implementations§
source§impl Clone for SizeTriggerDeserializer
impl Clone for SizeTriggerDeserializer
source§fn clone(&self) -> SizeTriggerDeserializer
fn clone(&self) -> SizeTriggerDeserializer
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 SizeTriggerDeserializer
impl Debug for SizeTriggerDeserializer
source§impl Default for SizeTriggerDeserializer
impl Default for SizeTriggerDeserializer
source§fn default() -> SizeTriggerDeserializer
fn default() -> SizeTriggerDeserializer
Returns the “default value” for a type. Read more
source§impl Deserialize for SizeTriggerDeserializer
impl Deserialize for SizeTriggerDeserializer
§type Config = SizeTriggerConfig
type Config = SizeTriggerConfig
This deserializer’s configuration.
source§fn deserialize(
&self,
config: SizeTriggerConfig,
_: &Deserializers
) -> Result<Box<dyn Trigger>>
fn deserialize( &self, config: SizeTriggerConfig, _: &Deserializers ) -> Result<Box<dyn Trigger>>
Create a new trait object based on the provided config.
source§impl Hash for SizeTriggerDeserializer
impl Hash for SizeTriggerDeserializer
source§impl PartialEq for SizeTriggerDeserializer
impl PartialEq for SizeTriggerDeserializer
source§fn eq(&self, other: &SizeTriggerDeserializer) -> bool
fn eq(&self, other: &SizeTriggerDeserializer) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SizeTriggerDeserializer
impl Eq for SizeTriggerDeserializer
impl StructuralPartialEq for SizeTriggerDeserializer
Auto Trait Implementations§
impl RefUnwindSafe for SizeTriggerDeserializer
impl Send for SizeTriggerDeserializer
impl Sync for SizeTriggerDeserializer
impl Unpin for SizeTriggerDeserializer
impl UnwindSafe for SizeTriggerDeserializer
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.