#[non_exhaustive]pub enum ResourceError {
InputBytes,
ListItems,
NestingDepth,
AllocationBytes,
ProofNodes,
TotalItems,
DeploymentPolicy,
}Expand description
Stable resource budget categories.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InputBytes
Input byte limit was exceeded.
ListItems
Per-list item limit was exceeded.
NestingDepth
Nesting depth limit was exceeded.
AllocationBytes
Cumulative allocation limit was exceeded.
ProofNodes
Proof-node limit was exceeded.
TotalItems
Cumulative decoded item limit was exceeded.
DeploymentPolicy
Deployment policy was not reviewed.
Implementations§
Trait Implementations§
Source§impl Clone for ResourceError
impl Clone for ResourceError
Source§fn clone(&self) -> ResourceError
fn clone(&self) -> ResourceError
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 ResourceError
Source§impl Debug for ResourceError
impl Debug for ResourceError
Source§impl Display for ResourceError
impl Display for ResourceError
impl Eq for ResourceError
Source§impl PartialEq for ResourceError
impl PartialEq for ResourceError
Source§fn eq(&self, other: &ResourceError) -> bool
fn eq(&self, other: &ResourceError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ResourceError
Auto Trait Implementations§
impl Freeze for ResourceError
impl RefUnwindSafe for ResourceError
impl Send for ResourceError
impl Sync for ResourceError
impl Unpin for ResourceError
impl UnsafeUnpin for ResourceError
impl UnwindSafe for ResourceError
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