Struct log4rs::file::Deserializers
[−]
[src]
pub struct Deserializers(_);
A container of Deserialize
rs.
Methods
impl Deserializers
[src]
fn new() -> Deserializers
[src]
Creates a Deserializers
with default mappings.
All are enabled by default.
- Appenders
- "console" ->
ConsoleAppenderDeserializer
- Requires the
console_appender
feature.
- Requires the
- "file" ->
FileAppenderDeserializer
- Requires the
file_appender
feature.
- Requires the
- "rolling_file" ->
RollingFileAppenderDeserializer
- Requires the
rolling_file_appender
feature.
- Requires the
- "console" ->
- Encoders
- "pattern" ->
PatternEncoderDeserializer
- Requires the
pattern_encoder
feature.
- Requires the
- "json" ->
JsonEncoderDeserializer
- Requires the
json_encoder
feature.
- Requires the
- "pattern" ->
- Filters
- "threshold" ->
ThresholdFilterDeserializer
- Requires the
threshold_filter
feature.
- Requires the
- "threshold" ->
- Policies
- "compound" ->
CompoundPolicyDeserializer
- Requires the
compound_policy
feature.
- Requires the
- "compound" ->
- Rollers
- "delete" ->
DeleteRollerDeserializer
- Requires the
delete_roller
feature.
- Requires the
- "fixed_window" ->
FixedWindowRollerDeserializer
- Requires the
fixed_window_roller
feature.
- Requires the
- "delete" ->
- Triggers
- "size" ->
SizeTriggerDeserializer
- Requires the
size_trigger
feature.
- Requires the
- "size" ->
fn empty() -> Deserializers
[src]
Creates a new Deserializers
with no mappings.
fn insert<T>(&mut self, kind: &str, deserializer: T) where
T: Deserialize,
[src]
T: Deserialize,
Adds a mapping from the specified kind
to a deserializer.
fn deserialize<T: ?Sized>(
&self,
kind: &str,
config: Value
) -> Result<Box<T>, Box<Error + Sync + Send>> where
T: Deserializable,
[src]
&self,
kind: &str,
config: Value
) -> Result<Box<T>, Box<Error + Sync + Send>> where
T: Deserializable,
Deserializes a value of a specific type and kind.
Trait Implementations
impl Clone for Deserializers
[src]
fn clone(&self) -> Deserializers
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Default for Deserializers
[src]
fn default() -> Deserializers
[src]
Returns the "default value" for a type. Read more