#[non_exhaustive]pub enum OperationError {
Primitive {
reason: PrimitiveErrorReason,
},
Provider {
reason: ProviderErrorReason,
},
Backend {
reason: BackendErrorReason,
},
}Expand description
Stable, redacted operation-layer error.
This is the domain error shape future operation implementations return before adapter-specific mapping. Variants carry only typed reasons so FFI, protobuf, SDK, and telemetry paths cannot accidentally include raw inputs, secrets, backend exception text, or arbitrary strings.
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.
Primitive
The primitive rejected caller-controlled data or verification failed.
Fields
§
reason: PrimitiveErrorReasonFixed primitive failure reason.
Provider
Provider policy, availability, or lane support rejected the request.
Fields
§
reason: ProviderErrorReasonFixed provider failure reason.
Backend
Backend execution failed after the request crossed the semantic layer.
Fields
§
reason: BackendErrorReasonFixed backend failure reason.
Trait Implementations§
Source§impl Clone for OperationError
impl Clone for OperationError
Source§fn clone(&self) -> OperationError
fn clone(&self) -> OperationError
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 OperationError
Source§impl Debug for OperationError
impl Debug for OperationError
Source§impl Display for OperationError
impl Display for OperationError
impl Eq for OperationError
Source§impl Error for OperationError
impl Error for OperationError
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 OperationError
impl PartialEq for OperationError
impl StructuralPartialEq for OperationError
Auto Trait Implementations§
impl Freeze for OperationError
impl RefUnwindSafe for OperationError
impl Send for OperationError
impl Sync for OperationError
impl Unpin for OperationError
impl UnsafeUnpin for OperationError
impl UnwindSafe for OperationError
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