Struct nonblock_logger::BaseFormater
source · pub struct BaseFormater { /* private fields */ }
Implementations
sourceimpl BaseFormater
impl BaseFormater
pub fn new() -> Self
pub fn local(self, local: bool) -> Self
pub fn local_get(&self) -> bool
pub fn level(self, chars: usize) -> Self
pub fn level_get(&self) -> usize
pub fn datetime<S: Into<String>>(self, datetime: S) -> Self
pub fn datetime_get(&self) -> &str
pub fn formater<F>(self, formater: F) -> Selfwhere
F: Fn(&Self, &Record<'_>) -> String + Send + Sync + 'static,
pub fn formater_get(
&self
) -> &(dyn Fn(&Self, &Record<'_>) -> String + Send + Sync + 'static)
Trait Implementations
sourceimpl Debug for BaseFormater
impl Debug for BaseFormater
sourceimpl Default for BaseFormater
impl Default for BaseFormater
Auto Trait Implementations
impl !RefUnwindSafe for BaseFormater
impl Send for BaseFormater
impl Sync for BaseFormater
impl Unpin for BaseFormater
impl !UnwindSafe for BaseFormater
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