Struct webrender_api::CrashAnnotatorGuard
source · pub struct CrashAnnotatorGuard<'a> {
pub(crate) annotator: &'a Option<Box<dyn CrashAnnotator>>,
pub(crate) annotation: CrashAnnotation,
}
Expand description
Guard to add a crash annotation at creation, and clear it at destruction.
Fields§
§annotator: &'a Option<Box<dyn CrashAnnotator>>
§annotation: CrashAnnotation
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