pub struct ResourceExhaustedFacts {
pub cause: String,
pub work_entered_lean: bool,
pub current_rss_kib: Option<u64>,
pub limit_kib: Option<u64>,
pub import_count: Option<u64>,
pub import_limit: Option<u64>,
pub requested_imports: Option<u64>,
pub last_import_stats: Option<String>,
}Expand description
Runtime facts attached to a caller-configured resource refusal.
This type deliberately stays generic enough for the base lean-rs crate:
higher layers can attach concrete import-stat diagnostics in the
last_import_stats string without forcing a dependency cycle back from
the error core into host or worker crates.
Fields§
§cause: String§work_entered_lean: bool§current_rss_kib: Option<u64>§limit_kib: Option<u64>§import_count: Option<u64>§import_limit: Option<u64>§requested_imports: Option<u64>§last_import_stats: Option<String>Trait Implementations§
Source§impl Clone for ResourceExhaustedFacts
impl Clone for ResourceExhaustedFacts
Source§fn clone(&self) -> ResourceExhaustedFacts
fn clone(&self) -> ResourceExhaustedFacts
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ResourceExhaustedFacts
impl Debug for ResourceExhaustedFacts
impl Eq for ResourceExhaustedFacts
Source§impl PartialEq for ResourceExhaustedFacts
impl PartialEq for ResourceExhaustedFacts
impl StructuralPartialEq for ResourceExhaustedFacts
Auto Trait Implementations§
impl Freeze for ResourceExhaustedFacts
impl RefUnwindSafe for ResourceExhaustedFacts
impl Send for ResourceExhaustedFacts
impl Sync for ResourceExhaustedFacts
impl Unpin for ResourceExhaustedFacts
impl UnsafeUnpin for ResourceExhaustedFacts
impl UnwindSafe for ResourceExhaustedFacts
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