[−][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 Clone for CompoundPolicyDeserializer
[src]
pub fn clone(&self) -> CompoundPolicyDeserializer
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for CompoundPolicyDeserializer
[src]
impl Debug for CompoundPolicyDeserializer
[src]
impl Default for CompoundPolicyDeserializer
[src]
pub fn default() -> CompoundPolicyDeserializer
[src]
impl Deserialize for CompoundPolicyDeserializer
[src]
type Trait = dyn Policy
The trait that this deserializer will create.
type Config = CompoundPolicyConfig
This deserializer's configuration.
pub fn deserialize(
&self,
config: CompoundPolicyConfig,
deserializers: &Deserializers
) -> Result<Box<dyn Policy>>
[src]
&self,
config: CompoundPolicyConfig,
deserializers: &Deserializers
) -> Result<Box<dyn Policy>>
impl Eq for CompoundPolicyDeserializer
[src]
impl Hash for CompoundPolicyDeserializer
[src]
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<CompoundPolicyDeserializer> for CompoundPolicyDeserializer
[src]
pub fn eq(&self, other: &CompoundPolicyDeserializer) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for CompoundPolicyDeserializer
[src]
impl StructuralPartialEq for CompoundPolicyDeserializer
[src]
Auto Trait Implementations
impl RefUnwindSafe for CompoundPolicyDeserializer
[src]
impl Send for CompoundPolicyDeserializer
[src]
impl Sync for CompoundPolicyDeserializer
[src]
impl Unpin for CompoundPolicyDeserializer
[src]
impl UnwindSafe for CompoundPolicyDeserializer
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> CloneAny for T where
T: Clone + Any,
[src]
T: Clone + Any,
pub fn clone_any(&self) -> Box<dyn CloneAny + 'static, Global>
[src]
pub fn clone_any_send(&self) -> Box<dyn CloneAny + 'static + Send, Global> where
T: Send,
[src]
T: Send,
pub fn clone_any_sync(&self) -> Box<dyn CloneAny + 'static + Sync, Global> where
T: Sync,
[src]
T: Sync,
pub fn clone_any_send_sync(
&self
) -> Box<dyn CloneAny + 'static + Send + Sync, Global> where
T: Send + Sync,
[src]
&self
) -> Box<dyn CloneAny + 'static + Send + Sync, Global> where
T: Send + Sync,
impl<T> DebugAny for T where
T: Any + Debug,
[src]
T: Any + Debug,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> 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.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> UnsafeAny for T where
T: Any,
T: Any,