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§fn clone(&self) -> ConsoleEntry
fn clone(&self) -> ConsoleEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto 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