pub struct Traceback(pub Vec<Log>);Expand description
Represents a traceback of logs.
Traceback beautifully implements Display for easy printing.
use breadcrumbs::{Traceback, Log};
let traceback = Traceback(vec![Log::new(String::from("test_channel"), breadcrumbs::LogLevel::Info, String::from("Test log message"))]);
assert_eq!(format!("{}", traceback), "[test_channel/Info] Test log message\n");Tuple Fields§
§0: Vec<Log>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Traceback
impl RefUnwindSafe for Traceback
impl Send for Traceback
impl Sync for Traceback
impl Unpin for Traceback
impl UnwindSafe for Traceback
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