Struct log4rs::append::rolling_file::policy::compound::CompoundPolicyDeserializer
source · pub struct CompoundPolicyDeserializer;
Expand description
A deserializer for the CompoundPolicyDeserializer
.
§Configuration
kind: compound
# The trigger, which determines when the log will roll over. Required.
trigger:
# Identifies which trigger is to be used. Required.
kind: size
# The remainder of the configuration is passed to the trigger's
# deserializer, and will vary based on the kind of trigger.
limit: 10 mb
# The roller, which processes the old log file. Required.
roller:
# Identifies which roller is to be used. Required.
kind: delete
# The remainder of the configuration is passed to the roller's
# deserializer, and will vary based on the kind of roller.
Trait Implementations§
source§impl Clone for CompoundPolicyDeserializer
impl Clone for CompoundPolicyDeserializer
source§fn clone(&self) -> CompoundPolicyDeserializer
fn clone(&self) -> CompoundPolicyDeserializer
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 CompoundPolicyDeserializer
impl Debug for CompoundPolicyDeserializer
source§impl Default for CompoundPolicyDeserializer
impl Default for CompoundPolicyDeserializer
source§fn default() -> CompoundPolicyDeserializer
fn default() -> CompoundPolicyDeserializer
Returns the “default value” for a type. Read more
source§impl Deserialize for CompoundPolicyDeserializer
impl Deserialize for CompoundPolicyDeserializer
§type Config = CompoundPolicyConfig
type Config = CompoundPolicyConfig
This deserializer’s configuration.
source§fn deserialize(
&self,
config: CompoundPolicyConfig,
deserializers: &Deserializers
) -> Result<Box<dyn Policy>>
fn deserialize( &self, config: CompoundPolicyConfig, deserializers: &Deserializers ) -> Result<Box<dyn Policy>>
Create a new trait object based on the provided config.
source§impl Hash for CompoundPolicyDeserializer
impl Hash for CompoundPolicyDeserializer
source§impl PartialEq for CompoundPolicyDeserializer
impl PartialEq for CompoundPolicyDeserializer
source§fn eq(&self, other: &CompoundPolicyDeserializer) -> bool
fn eq(&self, other: &CompoundPolicyDeserializer) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for CompoundPolicyDeserializer
impl Eq for CompoundPolicyDeserializer
impl StructuralPartialEq for CompoundPolicyDeserializer
Auto Trait Implementations§
impl RefUnwindSafe for CompoundPolicyDeserializer
impl Send for CompoundPolicyDeserializer
impl Sync for CompoundPolicyDeserializer
impl Unpin for CompoundPolicyDeserializer
impl UnwindSafe for CompoundPolicyDeserializer
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.