[−][src]Struct log4rs::append::rolling_file::policy::compound::roll::fixed_window::FixedWindowRollerDeserializer
A deserializer for the FixedWindowRoller
.
Configuration
kind: fixed_window
# The filename pattern for archived logs. This is either an absolute path or if lacking a leading `/`,
# relative to the `cwd` of your application. The pattern must contain at least one
# instance of `{}`, all of which will be replaced with an archived log file's index.
# If the file extension of the pattern is `.gz` and the `gzip` Cargo feature
# is enabled, the archive files will be gzip-compressed.
# Required.
pattern: archive/foo.{}.log
# The maximum number of archived logs to maintain. Required.
count: 5
# The base value for archived log indices. Defaults to 0.
base: 1
Trait Implementations
impl Deserialize for FixedWindowRollerDeserializer
[src]
type Trait = dyn Roll
The trait that this deserializer will create.
type Config = FixedWindowRollerConfig
This deserializer's configuration.
fn deserialize(
&self,
config: FixedWindowRollerConfig,
_: &Deserializers
) -> Result<Box<dyn Roll>, Box<dyn Error + Sync + Send>>
[src]
&self,
config: FixedWindowRollerConfig,
_: &Deserializers
) -> Result<Box<dyn Roll>, Box<dyn Error + Sync + Send>>
Auto Trait Implementations
impl RefUnwindSafe for FixedWindowRollerDeserializer
impl Send for FixedWindowRollerDeserializer
impl Sync for FixedWindowRollerDeserializer
impl Unpin for FixedWindowRollerDeserializer
impl UnwindSafe for FixedWindowRollerDeserializer
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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.
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> UnsafeAny for T where
T: Any,
T: Any,