#[non_exhaustive]pub enum LimitKind {
InputMemory,
InputBytes,
BlockOutput,
DecodeWork,
Inflate,
ContainerDepth,
TreeDepth,
ValueDepth,
ValuesPerObject,
ZeroSizeElements,
Count,
}Expand description
Which bound was exceeded.
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.
InputMemory
crate::limits::Limits::max_input_memory: the input’s meter.
InputBytes
BlockOutput
DecodeWork
crate::limits::Limits::max_decode_work: every byte block decodes
wrote since the input was opened, and what lazy computations the
meter refused were granted.
Inflate
ContainerDepth
TreeDepth
ValueDepth
ValuesPerObject
ZeroSizeElements
Count
More nodes, types, objects or ref-type trees than an index type holds.
Trait Implementations§
impl Copy for LimitKind
impl Eq for LimitKind
impl StructuralPartialEq for LimitKind
Auto Trait Implementations§
impl Forget for LimitKind
impl Freeze for LimitKind
impl Move for LimitKind
impl RefUnwindSafe for LimitKind
impl Send for LimitKind
impl Sync for LimitKind
impl Unpin for LimitKind
impl UnsafeUnpin for LimitKind
impl UnwindSafe for LimitKind
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