Struct nonblock_logger::NonblockLogger
source · pub struct NonblockLogger { /* private fields */ }
Implementations
sourceimpl NonblockLogger
impl NonblockLogger
pub fn new() -> Self
pub fn with_capacity(cap: usize) -> Self
pub fn sendfn<F>(self, sendfn: F) -> Selfwhere
F: Fn(&NonblockLogger, Option<Message>) + Send + Sync + 'static,
pub fn formater<F: Formater>(self, formater: F) -> Self
pub fn filter<F: Filter>(self, filter: F) -> Result<Self, Error>
pub fn consumer<C: Consumer>(self, consumer: C) -> Result<Self, Error>
pub fn name<S: Into<String>>(self, name: S) -> Self
pub fn name_get(&self) -> Option<&String>
pub fn quiet_get(&self) -> bool
pub fn spawn(self) -> Result<JoinHandle, Error>
pub fn log_to_stdout(self) -> Result<JoinHandle, Error>
pub fn log_to_stderr(self) -> Result<JoinHandle, Error>
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for NonblockLogger
impl Send for NonblockLogger
impl Sync for NonblockLogger
impl Unpin for NonblockLogger
impl !UnwindSafe for NonblockLogger
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