pub struct BoundedDiagnostic { /* private fields */ }Expand description
Four fixed causes plus explicit overflow. Capture never invokes Backtrace or an arbitrary source formatter. Retain alongside the original Result, not in it.
Implementations§
Source§impl BoundedDiagnostic
impl BoundedDiagnostic
pub fn capture( category: DiagnosticCategory, site: CaptureSite, cause: BoundedDiagnosticCause, ) -> Self
pub fn wrap(self, cause: BoundedDiagnosticCause) -> Self
pub fn during_cleanup_of(self, primary: &Self) -> Self
pub fn id(&self) -> u64
pub fn occurrence(&self) -> DiagnosticOccurrence
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BoundedDiagnostic
impl RefUnwindSafe for BoundedDiagnostic
impl Send for BoundedDiagnostic
impl Sync for BoundedDiagnostic
impl Unpin for BoundedDiagnostic
impl UnsafeUnpin for BoundedDiagnostic
impl UnwindSafe for BoundedDiagnostic
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