pub struct ConsoleEntry {
pub timestamp: SystemTime,
pub level: ConsoleLevel,
pub message: String,
pub stack: Option<String>,
}Expand description
One captured console event.
Fields§
§timestamp: SystemTimeWall-clock when the event was captured.
level: ConsoleLevel§message: StringThe serialized message. Multiple console.log("a", "b") args
are joined with a single space, matching DevTools’ rendering.
stack: Option<String>Optional stack trace (one frame per line). Present for
uncaught exceptions and console.error/trace; None
otherwise.
Trait Implementations§
Source§impl Clone for ConsoleEntry
impl Clone for ConsoleEntry
Source§impl Debug for ConsoleEntry
impl Debug for ConsoleEntry
impl Eq for ConsoleEntry
Source§impl PartialEq for ConsoleEntry
impl PartialEq for ConsoleEntry
impl StructuralPartialEq for ConsoleEntry
Auto Trait Implementations§
impl Freeze for ConsoleEntry
impl RefUnwindSafe for ConsoleEntry
impl Send for ConsoleEntry
impl Sync for ConsoleEntry
impl Unpin for ConsoleEntry
impl UnsafeUnpin for ConsoleEntry
impl UnwindSafe for ConsoleEntry
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