pub struct FileJournal { /* private fields */ }Expand description
Mirrors FileJournal — writes to stdout/stderr/disk.
Implementations§
Trait Implementations§
Source§impl Journal for FileJournal
impl Journal for FileJournal
fn name(&self) -> &str
Source§fn is_accepted(&self, category: JournalCategory, level: JournalLevel) -> bool
fn is_accepted(&self, category: JournalCategory, level: JournalLevel) -> bool
Acceptance check — returns true iff the journal would emit a
message at
(level, category).fn set_print_level(&self, category: JournalCategory, level: JournalLevel)
fn set_all_print_levels(&self, level: JournalLevel)
Source§fn print(&self, category: JournalCategory, level: JournalLevel, s: &str)
fn print(&self, category: JournalCategory, level: JournalLevel, s: &str)
Emit a pre-formatted string (callers do their own formatting).
fn flush(&self)
Auto Trait Implementations§
impl !Freeze for FileJournal
impl RefUnwindSafe for FileJournal
impl Send for FileJournal
impl Sync for FileJournal
impl Unpin for FileJournal
impl UnsafeUnpin for FileJournal
impl UnwindSafe for FileJournal
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