[−][src]Struct log4rs::file::Deserializers
A container of Deserializers.
Methods
impl Deserializers[src]
pub fn new() -> Deserializers[src]
Creates a Deserializers with default mappings.
All are enabled by default.
- Appenders
- "console" ->
ConsoleAppenderDeserializer- Requires the
console_appenderfeature.
- Requires the
- "file" ->
FileAppenderDeserializer- Requires the
file_appenderfeature.
- Requires the
- "rolling_file" ->
RollingFileAppenderDeserializer- Requires the
rolling_file_appenderfeature.
- Requires the
- "console" ->
- Encoders
- "pattern" ->
PatternEncoderDeserializer- Requires the
pattern_encoderfeature.
- Requires the
- "json" ->
JsonEncoderDeserializer- Requires the
json_encoderfeature.
- Requires the
- "pattern" ->
- Filters
- "threshold" ->
ThresholdFilterDeserializer- Requires the
threshold_filterfeature.
- Requires the
- "threshold" ->
- Policies
- "compound" ->
CompoundPolicyDeserializer- Requires the
compound_policyfeature.
- Requires the
- "compound" ->
- Rollers
- "delete" ->
DeleteRollerDeserializer- Requires the
delete_rollerfeature.
- Requires the
- "fixed_window" ->
FixedWindowRollerDeserializer- Requires the
fixed_window_rollerfeature.
- Requires the
- "delete" ->
- Triggers
- "size" ->
SizeTriggerDeserializer- Requires the
size_triggerfeature.
- Requires the
- "size" ->
pub fn empty() -> Deserializers[src]
Creates a new Deserializers with no mappings.
pub fn insert<T>(&mut self, kind: &str, deserializer: T) where
T: Deserialize, [src]
T: Deserialize,
Adds a mapping from the specified kind to a deserializer.
pub fn deserialize<T: ?Sized>(
&self,
kind: &str,
config: Value
) -> Result<Box<T>, Box<dyn Error + Sync + Send>> where
T: Deserializable, [src]
&self,
kind: &str,
config: Value
) -> Result<Box<T>, Box<dyn Error + Sync + Send>> where
T: Deserializable,
Deserializes a value of a specific type and kind.
Trait Implementations
impl Default for Deserializers[src]
fn default() -> Deserializers[src]
impl Clone for Deserializers[src]
fn clone(&self) -> Deserializers[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
Auto Trait Implementations
impl Send for Deserializers
impl Sync for Deserializers
Blanket Implementations
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> CloneAny for T where
T: Clone + Any, [src]
T: Clone + Any,
fn clone_any(&self) -> Box<dyn CloneAny + 'static>[src]
fn clone_any_send(&self) -> Box<dyn CloneAny + 'static + Send> where
T: Send, [src]
T: Send,
fn clone_any_sync(&self) -> Box<dyn CloneAny + 'static + Sync> where
T: Sync, [src]
T: Sync,
fn clone_any_send_sync(&self) -> Box<dyn CloneAny + 'static + Sync + Send> where
T: Send + Sync, [src]
T: Send + Sync,
impl<T> UnsafeAny for T where
T: Any, [src]
T: Any,