#[non_exhaustive]pub enum LimitError {
InputTooLarge {
actual: usize,
limit: usize,
},
TooManyResourceRequests {
actual: usize,
limit: usize,
},
TooManyLayoutNodes {
actual: usize,
limit: usize,
},
}Expand description
Signals that a host configured resource limit 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.
InputTooLarge
Input byte count exceeded the configured maximum.
TooManyResourceRequests
Resource request count exceeded the configured maximum.
TooManyLayoutNodes
Layout node count exceeded the configured maximum.
Trait Implementations§
Source§impl Clone for LimitError
impl Clone for LimitError
Source§impl Debug for LimitError
impl Debug for LimitError
impl Eq for LimitError
Source§impl PartialEq for LimitError
impl PartialEq for LimitError
impl StructuralPartialEq for LimitError
Auto Trait Implementations§
impl Freeze for LimitError
impl RefUnwindSafe for LimitError
impl Send for LimitError
impl Sync for LimitError
impl Unpin for LimitError
impl UnsafeUnpin for LimitError
impl UnwindSafe for LimitError
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