Struct bp3d_logger::handler::StdHandler
source · pub struct StdHandler { /* private fields */ }Expand description
A simple stdout/stderr handler which redirects error messages to stderr and other messages to stdout.
Implementations§
source§impl StdHandler
impl StdHandler
sourcepub fn new(smart_stderr: bool, colors: Colors) -> StdHandler
pub fn new(smart_stderr: bool, colors: Colors) -> StdHandler
Creates a new StdHandler.
§Arguments
smart_stderr: true to enable redirecting error logs to stderr, false otherwise.colors: the printing color policy.
returns: StdHandler
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StdHandler
impl RefUnwindSafe for StdHandler
impl Send for StdHandler
impl Sync for StdHandler
impl Unpin for StdHandler
impl UnwindSafe for StdHandler
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