pub enum ExecutionControlError {
Transition {
from: GenerationStatus,
to: GenerationStatus,
},
UnknownEstimate,
Overflow,
Limit(&'static str),
}Expand description
Portable invalid-state or budget failure, before a native operation is called.
Variants§
Transition
The current state does not permit the requested lifecycle edge.
Fields
§
from: GenerationStatusCurrent lifecycle state.
§
to: GenerationStatusRequested lifecycle state.
UnknownEstimate
A complete estimate is required before copying or retaining state.
Overflow
Checked arithmetic failed.
Limit(&'static str)
The explicitly admitted logical resource limit was exceeded.
Trait Implementations§
Source§impl Clone for ExecutionControlError
impl Clone for ExecutionControlError
Source§fn clone(&self) -> ExecutionControlError
fn clone(&self) -> ExecutionControlError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ExecutionControlError
impl Debug for ExecutionControlError
Source§impl Display for ExecutionControlError
impl Display for ExecutionControlError
impl Eq for ExecutionControlError
Source§impl Error for ExecutionControlError
impl Error for ExecutionControlError
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 PartialEq for ExecutionControlError
impl PartialEq for ExecutionControlError
impl StructuralPartialEq for ExecutionControlError
Auto Trait Implementations§
impl Freeze for ExecutionControlError
impl RefUnwindSafe for ExecutionControlError
impl Send for ExecutionControlError
impl Sync for ExecutionControlError
impl Unpin for ExecutionControlError
impl UnsafeUnpin for ExecutionControlError
impl UnwindSafe for ExecutionControlError
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