pub struct HostFormatter { /* private fields */ }
Expand description
A formatter for host-generated frames
Implementations§
Source§impl HostFormatter
impl HostFormatter
Sourcepub fn new(config: FormatterConfig<'_>) -> Self
pub fn new(config: FormatterConfig<'_>) -> Self
Create a new host formatter using the given config
Sourcepub fn format(&self, record: &LogRecord<'_>) -> String
pub fn format(&self, record: &LogRecord<'_>) -> String
Format the given log::Record
.
Auto Trait Implementations§
impl Freeze for HostFormatter
impl RefUnwindSafe for HostFormatter
impl Send for HostFormatter
impl Sync for HostFormatter
impl Unpin for HostFormatter
impl UnwindSafe for HostFormatter
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