pub enum LimitViolation {
TimeExceeded {
limit: Duration,
actual: Duration,
},
MemoryExceeded {
limit: usize,
actual: usize,
},
InstructionsExceeded {
limit: u64,
actual: u64,
},
StackDepthExceeded {
limit: usize,
actual: usize,
},
OutputSizeExceeded {
limit: usize,
actual: usize,
},
FsOpsExceeded {
limit: usize,
},
NetOpsExceeded {
limit: usize,
},
}Expand description
A violation of resource limits.
Variants§
TimeExceeded
Execution time exceeded.
MemoryExceeded
Memory limit exceeded.
InstructionsExceeded
CPU instruction limit exceeded.
StackDepthExceeded
Call stack depth exceeded.
OutputSizeExceeded
Output size limit exceeded.
FsOpsExceeded
File system operation limit exceeded.
NetOpsExceeded
Network operation limit exceeded.
Trait Implementations§
Source§impl Clone for LimitViolation
impl Clone for LimitViolation
Source§fn clone(&self) -> LimitViolation
fn clone(&self) -> LimitViolation
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 LimitViolation
impl Debug for LimitViolation
Source§impl Display for LimitViolation
impl Display for LimitViolation
Source§impl Error for LimitViolation
impl Error for LimitViolation
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<LimitViolation> for Error
impl From<LimitViolation> for Error
Source§fn from(source: LimitViolation) -> Self
fn from(source: LimitViolation) -> Self
Converts to this type from the input type.
Source§impl PartialEq for LimitViolation
impl PartialEq for LimitViolation
impl StructuralPartialEq for LimitViolation
Auto Trait Implementations§
impl Freeze for LimitViolation
impl RefUnwindSafe for LimitViolation
impl Send for LimitViolation
impl Sync for LimitViolation
impl Unpin for LimitViolation
impl UnwindSafe for LimitViolation
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