pub struct ResourceLimit {
pub dimension: ResourceDimension,
pub reason: ResourceFailure,
pub scope: LimitScope,
pub limit: u64,
pub used: u64,
pub additional: u64,
pub context: ErrorContext,
}Expand description
A resource refusal.
Fields§
§dimension: ResourceDimensionThe dimension that refused the request.
reason: ResourceFailureWhether policy or the allocator refused.
scope: LimitScopeThe extent the limit applies to.
limit: u64The allowance in force.
used: u64The amount already charged before this request.
additional: u64The saturating size of the request that failed.
context: ErrorContextStatic context for the failure.
Trait Implementations§
Source§impl Clone for ResourceLimit
impl Clone for ResourceLimit
Source§fn clone(&self) -> ResourceLimit
fn clone(&self) -> ResourceLimit
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 moreimpl Copy for ResourceLimit
Source§impl Debug for ResourceLimit
impl Debug for ResourceLimit
impl Eq for ResourceLimit
Source§impl PartialEq for ResourceLimit
impl PartialEq for ResourceLimit
impl StructuralPartialEq for ResourceLimit
Auto Trait Implementations§
impl Freeze for ResourceLimit
impl RefUnwindSafe for ResourceLimit
impl Send for ResourceLimit
impl Sync for ResourceLimit
impl Unpin for ResourceLimit
impl UnsafeUnpin for ResourceLimit
impl UnwindSafe for ResourceLimit
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