pub struct CrashAnnotatorGuard<'a> { /* private fields */ }
Expand description
Guard to add a crash annotation at creation, and clear it at destruction.
Implementations§
Source§impl<'a> CrashAnnotatorGuard<'a>
impl<'a> CrashAnnotatorGuard<'a>
pub fn new( annotator: &'a Option<Box<dyn CrashAnnotator>>, annotation: CrashAnnotation, value: &CStr, ) -> Self
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for CrashAnnotatorGuard<'a>
impl<'a> !RefUnwindSafe for CrashAnnotatorGuard<'a>
impl<'a> !Send for CrashAnnotatorGuard<'a>
impl<'a> !Sync for CrashAnnotatorGuard<'a>
impl<'a> Unpin for CrashAnnotatorGuard<'a>
impl<'a> !UnwindSafe for CrashAnnotatorGuard<'a>
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