Struct log4rs::append::rolling_file::RollingFileAppenderDeserializer
source · [−]pub struct RollingFileAppenderDeserializer;
Expand description
A deserializer for the RollingFileAppender
.
Configuration
kind: rolling_file
path: log/foo.log
append: true
encoder:
kind: pattern
policy:
kind: compound
trigger:
kind: size
limit: 10 mb
roller:
kind: delete
Trait Implementations
sourceimpl Deserialize for RollingFileAppenderDeserializer
impl Deserialize for RollingFileAppenderDeserializer
type Config = RollingFileAppenderConfig
type Config = RollingFileAppenderConfig
This deserializer’s configuration.
sourcefn deserialize(
&self,
config: RollingFileAppenderConfig,
deserializers: &Deserializers
) -> Result<Box<dyn Append>, Box<dyn Error + Sync + Send>>
fn deserialize(
&self,
config: RollingFileAppenderConfig,
deserializers: &Deserializers
) -> Result<Box<dyn Append>, Box<dyn Error + Sync + Send>>
Create a new trait object based on the provided config.
Auto Trait Implementations
impl RefUnwindSafe for RollingFileAppenderDeserializer
impl Send for RollingFileAppenderDeserializer
impl Sync for RollingFileAppenderDeserializer
impl Unpin for RollingFileAppenderDeserializer
impl UnwindSafe for RollingFileAppenderDeserializer
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more