pub enum OpsError {
Store(StoreError),
Query(QueryError),
InvalidInput(&'static str),
StaleLoops,
}Expand description
Why a repair operation could not run.
Every operation computes and validates its whole plan before writing, so
an error leaves the mesh as it was, except where the store’s own error says
otherwise (StoreError::TransactionPoisoned).
Variants§
Store(StoreError)
The store failed, including running out of memory
(StoreError::OutOfMemory).
Query(QueryError)
A query used by the operation failed.
InvalidInput(&'static str)
An argument was invalid; the message says which and why.
StaleLoops
A requested boundary loop no longer exists in the mesh.
Trait Implementations§
impl Eq for OpsError
Source§impl Error for OpsError
impl Error for OpsError
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<QueryError> for OpsError
A query running out of memory becomes OpsError::Store with
StoreError::OutOfMemory, like every other allocation failure here.
impl From<QueryError> for OpsError
A query running out of memory becomes OpsError::Store with
StoreError::OutOfMemory, like every other allocation failure here.
Source§fn from(e: QueryError) -> Self
fn from(e: QueryError) -> Self
Converts to this type from the input type.
Source§impl From<StoreError> for OpsError
impl From<StoreError> for OpsError
Source§fn from(e: StoreError) -> Self
fn from(e: StoreError) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for OpsError
Auto Trait Implementations§
impl Freeze for OpsError
impl RefUnwindSafe for OpsError
impl Send for OpsError
impl Sync for OpsError
impl Unpin for OpsError
impl UnsafeUnpin for OpsError
impl UnwindSafe for OpsError
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