#[non_exhaustive]pub enum CpuEngineError {
Broken,
}Expand description
Typed refusals reported by a CpuEngine before an operation runs.
They reach callers as the source of a crate::Error::RuntimeState.
§Examples
use tenferro_cpu::CpuEngineError;
assert!(CpuEngineError::Broken.to_string().contains("panic"));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.
Broken
An earlier operation panicked while it was using the engine.
The engine’s workspace may be half updated, so later operations are refused; replace the engine with a new one.
Trait Implementations§
Source§impl Clone for CpuEngineError
impl Clone for CpuEngineError
Source§fn clone(&self) -> CpuEngineError
fn clone(&self) -> CpuEngineError
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 moreimpl Copy for CpuEngineError
Source§impl Debug for CpuEngineError
impl Debug for CpuEngineError
Source§impl Display for CpuEngineError
impl Display for CpuEngineError
impl Eq for CpuEngineError
Source§impl Error for CpuEngineError
impl Error for CpuEngineError
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 CpuEngineError
impl PartialEq for CpuEngineError
impl StructuralPartialEq for CpuEngineError
Auto Trait Implementations§
impl Freeze for CpuEngineError
impl RefUnwindSafe for CpuEngineError
impl Send for CpuEngineError
impl Sync for CpuEngineError
impl Unpin for CpuEngineError
impl UnsafeUnpin for CpuEngineError
impl UnwindSafe for CpuEngineError
Blanket Implementations§
impl<T> Boilerplate for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
impl<T, U> Imply<T> for U
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more