Struct log4rs::config::runtime::RootBuilder
source · pub struct RootBuilder { /* private fields */ }
Expand description
A builder for Root
s.
Implementations§
source§impl RootBuilder
impl RootBuilder
sourcepub fn appender<T>(self, appender: T) -> RootBuilder
pub fn appender<T>(self, appender: T) -> RootBuilder
Adds an appender.
sourcepub fn appenders<I>(self, appenders: I) -> RootBuilder
pub fn appenders<I>(self, appenders: I) -> RootBuilder
Adds appenders.
sourcepub fn build(self, level: LevelFilter) -> Root
pub fn build(self, level: LevelFilter) -> Root
Consumes the RootBuilder
, returning the Root
.
Trait Implementations§
source§impl Clone for RootBuilder
impl Clone for RootBuilder
source§fn clone(&self) -> RootBuilder
fn clone(&self) -> RootBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for RootBuilder
impl Debug for RootBuilder
source§impl Hash for RootBuilder
impl Hash for RootBuilder
source§impl PartialEq for RootBuilder
impl PartialEq for RootBuilder
source§fn eq(&self, other: &RootBuilder) -> bool
fn eq(&self, other: &RootBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for RootBuilder
impl StructuralPartialEq for RootBuilder
Auto Trait Implementations§
impl RefUnwindSafe for RootBuilder
impl Send for RootBuilder
impl Sync for RootBuilder
impl Unpin for RootBuilder
impl UnwindSafe for RootBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.