pub struct EventTracker {
pub console_entries: Vec<ConsoleEntry>,
pub error_entries: Vec<ErrorEntry>,
pub max_entries: usize,
}Fields§
§console_entries: Vec<ConsoleEntry>§error_entries: Vec<ErrorEntry>§max_entries: usizeImplementations§
Source§impl EventTracker
impl EventTracker
pub fn new() -> Self
pub fn add_console(&mut self, level: &str, text: &str, args: Vec<Value>)
pub fn add_error( &mut self, text: &str, url: Option<&str>, line: Option<i64>, col: Option<i64>, )
pub fn clear_console(&mut self)
pub fn get_console_json(&self) -> Value
pub fn get_errors_json(&self) -> Value
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EventTracker
impl RefUnwindSafe for EventTracker
impl Send for EventTracker
impl Sync for EventTracker
impl Unpin for EventTracker
impl UnsafeUnpin for EventTracker
impl UnwindSafe for EventTracker
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