Struct log4rs::file::Deserializers
[−]
[src]
pub struct Deserializers(_);
A container of Deserializers.
Methods
impl Deserializers[src]
fn new() -> Deserializers
Creates a new Deserializers with no mappings.
fn insert<T: ?Sized + Any>(&mut self, kind: String, builder: Box<Deserialize<Trait=T>>)
Adds a mapping from the specified kind to a deserializer.
fn get<T: ?Sized + Any>(&self, kind: &str) -> Option<&Deserialize<Trait=T>>
Retrieves the deserializer of the specified kind.
fn deserialize<T: ?Sized + Any>(&self, trait_: &str, kind: &str, config: Value) -> Result<Box<T>, Box<Error>>
A utility method that deserializes a value.
Trait Implementations
impl Default for Deserializers[src]
Creates a Deserializers with the following mappings:
- Appenders
- "file" ->
FileAppenderDeserializer - "console" ->
ConsoleAppenderDeserializer
- "file" ->
- Filters
- "threshold" ->
ThresholdFilterDeserializer
- "threshold" ->
- Encoders
- "pattern" ->
PatternEncoderDeserializer
- "pattern" ->
fn default() -> Deserializers
Returns the "default value" for a type. Read more