#[non_exhaustive]pub struct FailureContext {
pub memory: Option<MemoryFailure>,
pub boundary: Option<ResourceBoundary>,
pub allocation_source: Option<AllocationSource>,
pub graph_cache_scope_peak_bytes: Option<u64>,
pub cleanup_deadline_elapsed: bool,
}Expand description
Typed evidence about why and where a query failed.
Every field is filled by the owner that observed it. Decoration keeps the first value: an outer layer never replaces the original failure location or allocator snapshot.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.memory: Option<MemoryFailure>Allocator snapshot of the budget scope the failing operation ran in.
boundary: Option<ResourceBoundary>Execution boundary that owned the failed unit of work.
allocation_source: Option<AllocationSource>Native allocator exception family that reported an allocation failure.
graph_cache_scope_peak_bytes: Option<u64>High-water mark of a completed resident-graph cache scope, present only after that scope finished its fence and health proof. Not a wire fact.
cleanup_deadline_elapsed: boolAn owner-reported cleanup wait reached its deadline.
Trait Implementations§
Source§impl Clone for FailureContext
impl Clone for FailureContext
Source§impl Debug for FailureContext
impl Debug for FailureContext
Source§impl Default for FailureContext
impl Default for FailureContext
impl Eq for FailureContext
Source§impl PartialEq for FailureContext
impl PartialEq for FailureContext
impl StructuralPartialEq for FailureContext
Auto Trait Implementations§
impl Freeze for FailureContext
impl RefUnwindSafe for FailureContext
impl Send for FailureContext
impl Sync for FailureContext
impl Unpin for FailureContext
impl UnsafeUnpin for FailureContext
impl UnwindSafe for FailureContext
Blanket Implementations§
impl<T> Allocation for T
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