[−][src]Struct log4rs::append::rolling_file::policy::compound::CompoundPolicyDeserializer
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
impl Deserialize for CompoundPolicyDeserializer
[src]
type Trait = dyn Policy
The trait that this deserializer will create.
type Config = CompoundPolicyConfig
This deserializer's configuration.
fn deserialize(
&self,
config: CompoundPolicyConfig,
deserializers: &Deserializers
) -> Result<Box<dyn Policy>, Box<dyn Error + Sync + Send>>
[src]
&self,
config: CompoundPolicyConfig,
deserializers: &Deserializers
) -> Result<Box<dyn Policy>, Box<dyn Error + Sync + Send>>
Auto Trait Implementations
impl Send for CompoundPolicyDeserializer
impl Sync for CompoundPolicyDeserializer
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> UnsafeAny for T where
T: Any,
T: Any,