pub struct ConsoleAppenderBuilder { /* private fields */ }
Expand description
A builder for ConsoleAppender
s.
Implementations
sourceimpl ConsoleAppenderBuilder
impl ConsoleAppenderBuilder
sourcepub fn encoder(self, encoder: Box<dyn Encode>) -> ConsoleAppenderBuilder
pub fn encoder(self, encoder: Box<dyn Encode>) -> ConsoleAppenderBuilder
Sets the output encoder for the ConsoleAppender
.
sourcepub fn target(self, target: Target) -> ConsoleAppenderBuilder
pub fn target(self, target: Target) -> ConsoleAppenderBuilder
Sets the output stream to log to.
Defaults to Target::Stdout
.
sourcepub fn build(self) -> ConsoleAppender
pub fn build(self) -> ConsoleAppender
Consumes the ConsoleAppenderBuilder
, producing a ConsoleAppender
.
Auto Trait Implementations
impl !RefUnwindSafe for ConsoleAppenderBuilder
impl Send for ConsoleAppenderBuilder
impl Sync for ConsoleAppenderBuilder
impl Unpin for ConsoleAppenderBuilder
impl !UnwindSafe for ConsoleAppenderBuilder
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