pub struct StringJournal { /* private fields */ }Expand description
In-memory sink used by tests and the option-printing path.
Implementations§
Trait Implementations§
Source§impl Journal for StringJournal
impl Journal for StringJournal
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 StringJournal
impl RefUnwindSafe for StringJournal
impl Send for StringJournal
impl Sync for StringJournal
impl Unpin for StringJournal
impl UnsafeUnpin for StringJournal
impl UnwindSafe for StringJournal
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