pub struct DebugState { /* private fields */ }Implementations§
Source§impl DebugState
impl DebugState
pub fn enable_trace(&mut self)
pub fn set_trace_enabled(&mut self, enabled: bool)
pub fn set_trace_stderr(&mut self, enabled: bool)
pub fn set_trace_events(&mut self, enabled: bool)
pub fn set_trace_timers(&mut self, enabled: bool)
pub fn set_trace_log_limit( &mut self, max_entries: usize, ) -> Result<(), ScriptError>
pub fn take_trace_logs(&mut self) -> Vec<String>
pub fn trace_enabled(&self) -> bool
pub fn trace_log_limit(&self) -> usize
Trait Implementations§
Source§impl Clone for DebugState
impl Clone for DebugState
Source§fn clone(&self) -> DebugState
fn clone(&self) -> DebugState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DebugState
impl Debug for DebugState
Source§impl Default for DebugState
impl Default for DebugState
Source§impl PartialEq for DebugState
impl PartialEq for DebugState
impl Eq for DebugState
impl StructuralPartialEq for DebugState
Auto Trait Implementations§
impl Freeze for DebugState
impl RefUnwindSafe for DebugState
impl Send for DebugState
impl Sync for DebugState
impl Unpin for DebugState
impl UnsafeUnpin for DebugState
impl UnwindSafe for DebugState
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