#[non_exhaustive]pub enum LimitKind {
InputBytes,
DecompressedBytes,
Objects,
Depth,
StringBytes,
Vertices,
TotalVertices,
Work,
Output,
Capacity,
}Expand description
The limit behind an Error::LimitExceeded.
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
DecompressedBytes
crate::Limits::max_decompressed_bytes, the budget for decoded and generated data.
Objects
Depth
StringBytes
Vertices
TotalVertices
Work
A computation work budget, such as WalkOptions::max_work or a validation budget.
Output
The size cap of an output being written.
Capacity
A value does not fit a field of the file format or the host’s address range; no configured limit is involved.
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