#[non_exhaustive]pub enum ScriptError {
NoEngine,
TimedOut {
after: Duration,
},
QuotaExhausted {
calls_per_turn: u32,
},
Failed(String),
}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.
NoEngine
No engine is available to run it.
TimedOut
It ran too long and was abandoned.
QuotaExhausted
It has already run as often as it may this turn.
Failed(String)
The engine refused or the script failed.
Trait Implementations§
Source§impl Clone for ScriptError
impl Clone for ScriptError
Source§impl Debug for ScriptError
impl Debug for ScriptError
Source§impl Display for ScriptError
impl Display for ScriptError
impl Eq for ScriptError
Source§impl PartialEq for ScriptError
impl PartialEq for ScriptError
impl StructuralPartialEq for ScriptError
Auto Trait Implementations§
impl Forget for ScriptError
impl Freeze for ScriptError
impl Move for ScriptError
impl RefUnwindSafe for ScriptError
impl Send for ScriptError
impl Sync for ScriptError
impl Unpin for ScriptError
impl UnsafeUnpin for ScriptError
impl UnwindSafe for ScriptError
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