Struct log4rs::append::rolling_file::policy::compound::roll::fixed_window::FixedWindowRollerDeserializer
source · pub struct FixedWindowRollerDeserializer;
Expand description
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§
source§impl Clone for FixedWindowRollerDeserializer
impl Clone for FixedWindowRollerDeserializer
source§fn clone(&self) -> FixedWindowRollerDeserializer
fn clone(&self) -> FixedWindowRollerDeserializer
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 Default for FixedWindowRollerDeserializer
impl Default for FixedWindowRollerDeserializer
source§fn default() -> FixedWindowRollerDeserializer
fn default() -> FixedWindowRollerDeserializer
Returns the “default value” for a type. Read more
source§impl Deserialize for FixedWindowRollerDeserializer
impl Deserialize for FixedWindowRollerDeserializer
§type Config = FixedWindowRollerConfig
type Config = FixedWindowRollerConfig
This deserializer’s configuration.
source§fn deserialize(
&self,
config: FixedWindowRollerConfig,
_: &Deserializers
) -> Result<Box<dyn Roll>>
fn deserialize( &self, config: FixedWindowRollerConfig, _: &Deserializers ) -> Result<Box<dyn Roll>>
Create a new trait object based on the provided config.
source§impl Hash for FixedWindowRollerDeserializer
impl Hash for FixedWindowRollerDeserializer
source§impl PartialEq for FixedWindowRollerDeserializer
impl PartialEq for FixedWindowRollerDeserializer
source§fn eq(&self, other: &FixedWindowRollerDeserializer) -> bool
fn eq(&self, other: &FixedWindowRollerDeserializer) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for FixedWindowRollerDeserializer
impl Eq for FixedWindowRollerDeserializer
impl StructuralPartialEq for FixedWindowRollerDeserializer
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§
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.