pub struct CrashRecords { /* private fields */ }
Implementations§
Source§impl CrashRecords
impl CrashRecords
pub fn new() -> Self
Sourcepub async fn add_report(&self, thread_koid: Koid, report: ComponentCrashInfo)
pub async fn add_report(&self, thread_koid: Koid, report: ComponentCrashInfo)
Adds a new report to CrashRecords, and schedules the new reports deletion in
CLEANUP_DEADLINE_SECONDS
.
Sourcepub async fn take_report(
&self,
thread_koid: &Koid,
) -> Option<ComponentCrashInfo>
pub async fn take_report( &self, thread_koid: &Koid, ) -> Option<ComponentCrashInfo>
Removes the report (if any), and deletes it.
Trait Implementations§
Source§impl Clone for CrashRecords
impl Clone for CrashRecords
Source§fn clone(&self) -> CrashRecords
fn clone(&self) -> CrashRecords
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for CrashRecords
impl !RefUnwindSafe for CrashRecords
impl Send for CrashRecords
impl Sync for CrashRecords
impl Unpin for CrashRecords
impl !UnwindSafe for CrashRecords
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)