[][src]Trait log4rs::file::Deserialize

pub trait Deserialize: Send + Sync + 'static {
    type Trait: ?Sized + Deserializable;
    type Config: DeserializeOwned;
    fn deserialize(
        &self,
        config: Self::Config,
        deserializers: &Deserializers
    ) -> Result<Box<Self::Trait>, Box<dyn Error + Sync + Send>>; }

A trait for objects that can deserialize log4rs components out of a config.

Associated Types

type Trait: ?Sized + Deserializable

The trait that this deserializer will create.

type Config: DeserializeOwned

This deserializer's configuration.

Loading content...

Required methods

fn deserialize(
    &self,
    config: Self::Config,
    deserializers: &Deserializers
) -> Result<Box<Self::Trait>, Box<dyn Error + Sync + Send>>

Create a new trait object based on the provided config.

Loading content...

Implementors

impl Deserialize for ConsoleAppenderDeserializer[src]

type Trait = dyn Append

type Config = ConsoleAppenderConfig

impl Deserialize for FileAppenderDeserializer[src]

type Trait = dyn Append

type Config = FileAppenderConfig

impl Deserialize for PatternEncoderDeserializer[src]

type Trait = dyn Encode

type Config = PatternEncoderConfig

impl Deserialize for ThresholdFilterDeserializer[src]

type Trait = dyn Filter

type Config = ThresholdFilterConfig

Loading content...