[−][src]Trait log4rs::file::Deserialize
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.
Required methods
fn deserialize(
&self,
config: Self::Config,
deserializers: &Deserializers
) -> Result<Box<Self::Trait>, Box<dyn Error + Sync + Send>>
&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.
Implementors
impl Deserialize for ConsoleAppenderDeserializer
[src]
type Trait = dyn Append
type Config = ConsoleAppenderConfig
fn deserialize(
&self,
config: ConsoleAppenderConfig,
deserializers: &Deserializers
) -> Result<Box<dyn Append>, Box<dyn Error + Sync + Send>>
[src]
&self,
config: ConsoleAppenderConfig,
deserializers: &Deserializers
) -> Result<Box<dyn Append>, Box<dyn Error + Sync + Send>>
impl Deserialize for FileAppenderDeserializer
[src]
type Trait = dyn Append
type Config = FileAppenderConfig
fn deserialize(
&self,
config: FileAppenderConfig,
deserializers: &Deserializers
) -> Result<Box<dyn Append>, Box<dyn Error + Sync + Send>>
[src]
&self,
config: FileAppenderConfig,
deserializers: &Deserializers
) -> Result<Box<dyn Append>, Box<dyn Error + Sync + Send>>
impl Deserialize for PatternEncoderDeserializer
[src]
type Trait = dyn Encode
type Config = PatternEncoderConfig
fn deserialize(
&self,
config: PatternEncoderConfig,
_: &Deserializers
) -> Result<Box<dyn Encode>, Box<dyn Error + Sync + Send>>
[src]
&self,
config: PatternEncoderConfig,
_: &Deserializers
) -> Result<Box<dyn Encode>, Box<dyn Error + Sync + Send>>
impl Deserialize for ThresholdFilterDeserializer
[src]
type Trait = dyn Filter
type Config = ThresholdFilterConfig
fn deserialize(
&self,
config: ThresholdFilterConfig,
_: &Deserializers
) -> Result<Box<dyn Filter>, Box<dyn Error + Sync + Send>>
[src]
&self,
config: ThresholdFilterConfig,
_: &Deserializers
) -> Result<Box<dyn Filter>, Box<dyn Error + Sync + Send>>