pub enum Error<E = Infallible> {
Show 40 variants
ShutdownTimeout {
phase: &'static str,
},
Unauthenticated,
PermissionDenied,
RecordSchema {
source: Error,
},
RecordPayload {
source: PayloadError,
},
RecordDeclaration {
source: DecodeError,
},
OperationRefused(Refusal),
OperationLaneCycle {
parent: &'static str,
child: &'static str,
},
OperationUnauthorized {
caller: String,
owner: String,
operation: String,
},
OperationPayload {
operation: String,
source: MessageError,
},
OperationPanicked {
operation: String,
},
OperationDeclaration {
source: Error,
},
OperationFailed {
operation: String,
source: Arc<dyn Error + Send + Sync>,
},
OperationFinalization {
operation: String,
outcome: Option<Arc<Error>>,
source: Arc<Error>,
},
OperationSettlement {
source: Arc<Error>,
},
TaskFailed {
domain: &'static str,
source: Arc<dyn Error + Send + Sync>,
},
NotReady {
domain: &'static str,
},
Persistence {
source: Arc<Error>,
},
Closing {
domain: &'static str,
},
AlreadyRegistered {
domain: &'static str,
name: String,
},
NotRegistered {
domain: &'static str,
name: String,
},
Backend {
operation: &'static str,
kind: BackendFailure,
source: Box<dyn Error + Send + Sync>,
},
InvalidInput {
field: &'static str,
reason: &'static str,
},
ResourceExhausted {
resource: &'static str,
},
DifferentHistory,
ViewExpired,
Gap {
requested: u64,
available: u64,
},
CaptureFailed,
IncompleteCommit,
Preparation(PreparationError),
Rejected(E),
UndoConflict(E),
RedoConflict(E),
NothingToUndo,
NothingToRedo,
OriginAhead,
FrontierAhead,
BeneathHorizon,
BeyondTail,
Unavailable,
}Variants§
ShutdownTimeout
Unauthenticated
PermissionDenied
RecordSchema
RecordPayload
Fields
§
source: PayloadErrorRecordDeclaration
Fields
§
source: DecodeErrorOperationRefused(Refusal)
OperationLaneCycle
Fields
OperationPayload
OperationPanicked
OperationDeclaration
OperationFailed
OperationFinalization
OperationSettlement
TaskFailed
NotReady
Persistence
Closing
AlreadyRegistered
NotRegistered
Backend
InvalidInput
ResourceExhausted
DifferentHistory
ViewExpired
Gap
CaptureFailed
IncompleteCommit
Preparation(PreparationError)
Rejected(E)
UndoConflict(E)
RedoConflict(E)
NothingToUndo
NothingToRedo
OriginAhead
FrontierAhead
BeneathHorizon
BeyondTail
Implementations§
Trait Implementations§
Source§impl<E> Error for Error<E>
impl<E> Error for Error<E>
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<E> From<ContextError> for Error<E>
impl<E> From<ContextError> for Error<E>
Source§fn from(error: ContextError) -> Self
fn from(error: ContextError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<E = !> !RefUnwindSafe for Error<E>
impl<E = !> !UnwindSafe for Error<E>
impl<E> Freeze for Error<E>where
E: Freeze,
impl<E> Send for Error<E>where
E: Send,
impl<E> Sync for Error<E>where
E: Sync,
impl<E> Unpin for Error<E>where
E: Unpin,
impl<E> UnsafeUnpin for Error<E>where
E: UnsafeUnpin,
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