Struct log4rs::append::rolling_file::policy::compound::CompoundPolicyDeserializer
source · [−]pub struct CompoundPolicyDeserializer;
Expand description
A deserializer for the CompoundPolicyDeserializer
.
Configuration
kind: compound
trigger:
kind: size
limit: 10 mb
roller:
kind: delete
Trait Implementations
sourceimpl Deserialize for CompoundPolicyDeserializer
impl Deserialize for CompoundPolicyDeserializer
type Config = CompoundPolicyConfig
type Config = CompoundPolicyConfig
This deserializer’s configuration.
sourcefn deserialize(
&self,
config: CompoundPolicyConfig,
deserializers: &Deserializers
) -> Result<Box<dyn Policy>, Box<dyn Error + Sync + Send>>
fn deserialize(
&self,
config: CompoundPolicyConfig,
deserializers: &Deserializers
) -> Result<Box<dyn Policy>, Box<dyn Error + Sync + Send>>
Create a new trait object based on the provided config.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more