pub enum LimitExceeded {
MaxCommands(usize),
MaxLoopIterations(usize),
MaxFunctionDepth(usize),
Timeout(Duration),
ParserTimeout(Duration),
InputTooLarge(usize, usize),
AstTooDeep(usize, usize),
ParserExhausted(usize, usize),
}Expand description
Error returned when a resource limit is exceeded
Variants§
MaxCommands(usize)
MaxLoopIterations(usize)
MaxFunctionDepth(usize)
Timeout(Duration)
ParserTimeout(Duration)
InputTooLarge(usize, usize)
AstTooDeep(usize, usize)
ParserExhausted(usize, usize)
Trait Implementations§
Source§impl Clone for LimitExceeded
impl Clone for LimitExceeded
Source§fn clone(&self) -> LimitExceeded
fn clone(&self) -> LimitExceeded
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LimitExceeded
impl Debug for LimitExceeded
Source§impl Display for LimitExceeded
impl Display for LimitExceeded
Source§impl Error for LimitExceeded
impl Error for LimitExceeded
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<LimitExceeded> for Error
impl From<LimitExceeded> for Error
Source§fn from(source: LimitExceeded) -> Self
fn from(source: LimitExceeded) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for LimitExceeded
impl RefUnwindSafe for LimitExceeded
impl Send for LimitExceeded
impl Sync for LimitExceeded
impl Unpin for LimitExceeded
impl UnwindSafe for LimitExceeded
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