pub struct CrashGuard { /* private fields */ }Expand description
Keeps the native handler and sampler armed.
Implementations§
Source§impl CrashGuard
impl CrashGuard
Sourcepub fn sample_ready(&self) -> bool
pub fn sample_ready(&self) -> bool
Whether the background sampler has produced at least one snapshot.
Sourcepub fn sample_thread_count(&self) -> usize
pub fn sample_thread_count(&self) -> usize
Thread count in the latest bounded pre-crash sample.
Sourcepub fn spool_path(&self) -> Option<&Path>
pub fn spool_path(&self) -> Option<&Path>
Pending spool path, exposed for diagnostic tests and operators.
Trait Implementations§
Source§impl Drop for CrashGuard
impl Drop for CrashGuard
Auto Trait Implementations§
impl !RefUnwindSafe for CrashGuard
impl !UnwindSafe for CrashGuard
impl Freeze for CrashGuard
impl Send for CrashGuard
impl Sync for CrashGuard
impl Unpin for CrashGuard
impl UnsafeUnpin for CrashGuard
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