pub struct RawConfig { /* private fields */ }
Expand description
A raw deserializable log4rs configuration.
Implementations
sourceimpl RawConfig
impl RawConfig
sourcepub fn appenders_lossy(
&self,
deserializers: &Deserializers
) -> (Vec<Appender>, Vec<Error>)
pub fn appenders_lossy(
&self,
deserializers: &Deserializers
) -> (Vec<Appender>, Vec<Error>)
Returns the appenders.
Any components which fail to be deserialized will be ignored.
sourcepub fn refresh_rate(&self) -> Option<Duration>
pub fn refresh_rate(&self) -> Option<Duration>
Returns the requested refresh rate.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for RawConfig
impl<'de> Deserialize<'de> for RawConfig
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for RawConfig
impl Send for RawConfig
impl Sync for RawConfig
impl Unpin for RawConfig
impl UnwindSafe for RawConfig
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