Struct nonblock_logger::BaseConsumer
source · pub struct BaseConsumer { /* private fields */ }
Implementations
sourceimpl BaseConsumer
impl BaseConsumer
pub fn new() -> Self
pub fn chain<O: Outputer>(
self,
level: LevelFilter,
outputer: O
) -> Result<Self, Error>
pub fn stdout(level: LevelFilter) -> Self
pub fn stderr(level: LevelFilter) -> Self
pub fn file(level: LevelFilter, file: File) -> Self
pub fn bufwriter<W>(level: LevelFilter, bufwriter: BufWriter<W>) -> Selfwhere
W: Write + Send + Sync + 'static,
Trait Implementations
sourceimpl Consumer for BaseConsumer
impl Consumer for BaseConsumer
sourceimpl Debug for BaseConsumer
impl Debug for BaseConsumer
sourceimpl Default for BaseConsumer
impl Default for BaseConsumer
sourcefn default() -> BaseConsumer
fn default() -> BaseConsumer
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl !RefUnwindSafe for BaseConsumer
impl Send for BaseConsumer
impl Sync for BaseConsumer
impl Unpin for BaseConsumer
impl !UnwindSafe for BaseConsumer
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more