Struct log4rs::file::Deserializers
source · [−]pub struct Deserializers(_);
Expand description
A container of Deserialize
rs.
Implementations
sourceimpl Deserializers
impl Deserializers
sourcepub fn new() -> Deserializers
pub fn new() -> Deserializers
Creates a Deserializers
with default mappings.
All are enabled by default.
- Appenders
- “console” ->
ConsoleAppenderDeserializer
- Requires the
console_appender
feature.
- Requires the
- “file” ->
FileAppenderDeserializer
- Requires the
file_appender
feature.
- Requires the
- “rolling_file” ->
RollingFileAppenderDeserializer
- Requires the
rolling_file_appender
feature.
- Requires the
- “console” ->
- Encoders
- “pattern” ->
PatternEncoderDeserializer
- Requires the
pattern_encoder
feature.
- Requires the
- “json” ->
JsonEncoderDeserializer
- Requires the
json_encoder
feature.
- Requires the
- “pattern” ->
- Filters
- “threshold” ->
ThresholdFilterDeserializer
- Requires the
threshold_filter
feature.
- Requires the
- “threshold” ->
- Policies
- “compound” ->
CompoundPolicyDeserializer
- Requires the
compound_policy
feature.
- Requires the
- “compound” ->
- Rollers
- “delete” ->
DeleteRollerDeserializer
- Requires the
delete_roller
feature.
- Requires the
- “fixed_window” ->
FixedWindowRollerDeserializer
- Requires the
fixed_window_roller
feature.
- Requires the
- “delete” ->
- Triggers
- “size” ->
SizeTriggerDeserializer
- Requires the
size_trigger
feature.
- Requires the
- “size” ->
sourcepub fn empty() -> Deserializers
pub fn empty() -> Deserializers
Creates a new Deserializers
with no mappings.
sourcepub fn insert<T>(&mut self, kind: &str, deserializer: T) where
T: Deserialize,
pub fn insert<T>(&mut self, kind: &str, deserializer: T) where
T: Deserialize,
Adds a mapping from the specified kind
to a deserializer.
Trait Implementations
sourceimpl Clone for Deserializers
impl Clone for Deserializers
sourcefn clone(&self) -> Deserializers
fn clone(&self) -> Deserializers
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Default for Deserializers
impl Default for Deserializers
sourcefn default() -> Deserializers
fn default() -> Deserializers
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl !RefUnwindSafe for Deserializers
impl Send for Deserializers
impl Sync for Deserializers
impl Unpin for Deserializers
impl !UnwindSafe for Deserializers
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
sourceimpl<T> CloneAny for T where
T: Any + Clone,
impl<T> CloneAny for T where
T: Any + Clone,
pub fn clone_any(&self) -> Box<dyn CloneAny + 'static, Global>
pub fn clone_any_send(&self) -> Box<dyn CloneAny + Send + 'static, Global> where
T: Send,
pub fn clone_any_sync(&self) -> Box<dyn CloneAny + Sync + 'static, Global> where
T: Sync,
pub fn clone_any_send_sync(
&self
) -> Box<dyn CloneAny + Send + Sync + 'static, Global> where
T: Send + Sync,
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more