pub enum DistributedError {
Show 39 variants
InvalidLimit {
name: &'static str,
},
InvalidLimitRelationship {
reason: &'static str,
},
CountLimitExceedsMaximum {
name: &'static str,
actual: usize,
maximum: usize,
},
TimeLimitExceedsMaximum {
name: &'static str,
actual: u64,
maximum: u64,
},
RetryLimitExceedsMaximum {
actual: u32,
maximum: u32,
},
InvalidTask {
reason: &'static str,
},
InvalidWorker {
reason: &'static str,
},
RevisionConflict {
expected: u64,
actual: u64,
},
LogicalTimeRegression {
current: u64,
proposed: u64,
},
CounterExhausted {
counter: &'static str,
},
TaskAlreadyExists {
task_id: String,
},
TaskNotFound {
task_id: String,
},
WorkerAlreadyExists {
worker_id: String,
},
WorkerNotFound {
worker_id: String,
},
WorkerGenerationConflict {
expected: u64,
actual: u64,
},
TaskRecordCapacityReached {
limit: usize,
},
ActiveTaskCapacityReached {
limit: usize,
},
QueuedTaskCapacityReached {
limit: usize,
},
TerminalCapacityReserved {
limit: usize,
},
WorkerCapacityReached {
limit: usize,
},
NoQueuedTask,
NoAvailableWorker,
WorkerUnavailable {
worker_id: String,
},
WorkerAtCapacity {
worker_id: String,
},
TaskNotQueued {
task_id: String,
status: TaskStatus,
},
InvalidTransition {
task_id: String,
status: TaskStatus,
operation: &'static str,
},
StaleOwnership {
task_id: String,
},
LeaseExpired {
task_id: String,
},
ConflictingResult {
task_id: String,
},
MismatchedResultReceipt {
task_id: String,
},
ResultCapacityReached {
limit: usize,
},
ResultTooLarge {
actual: usize,
limit: usize,
},
TotalResultBytesExceeded {
actual: usize,
limit: usize,
},
AggregateItemLimitExceeded {
actual: usize,
limit: usize,
},
DuplicateAggregateTask {
task_id: String,
},
MissingResult {
task_id: String,
},
AggregateBytesExceeded {
actual: usize,
limit: usize,
},
StateInvariant {
reason: &'static str,
},
StatePoisoned,
}Expand description
Typed state-machine failures. Every failure leaves state unchanged.
Variants§
InvalidLimit
InvalidLimitRelationship
CountLimitExceedsMaximum
TimeLimitExceedsMaximum
RetryLimitExceedsMaximum
InvalidTask
InvalidWorker
RevisionConflict
LogicalTimeRegression
CounterExhausted
TaskAlreadyExists
TaskNotFound
WorkerAlreadyExists
WorkerNotFound
WorkerGenerationConflict
TaskRecordCapacityReached
ActiveTaskCapacityReached
QueuedTaskCapacityReached
TerminalCapacityReserved
WorkerCapacityReached
NoQueuedTask
NoAvailableWorker
WorkerAtCapacity
TaskNotQueued
InvalidTransition
StaleOwnership
LeaseExpired
ConflictingResult
MismatchedResultReceipt
ResultCapacityReached
ResultTooLarge
TotalResultBytesExceeded
AggregateItemLimitExceeded
DuplicateAggregateTask
MissingResult
AggregateBytesExceeded
StateInvariant
StatePoisoned
Trait Implementations§
Source§impl Clone for DistributedError
impl Clone for DistributedError
Source§fn clone(&self) -> DistributedError
fn clone(&self) -> DistributedError
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 DistributedError
impl Debug for DistributedError
Source§impl Display for DistributedError
impl Display for DistributedError
impl Eq for DistributedError
Source§impl Error for DistributedError
impl Error for DistributedError
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 DistributedError
impl PartialEq for DistributedError
impl StructuralPartialEq for DistributedError
Auto Trait Implementations§
impl Freeze for DistributedError
impl RefUnwindSafe for DistributedError
impl Send for DistributedError
impl Sync for DistributedError
impl Unpin for DistributedError
impl UnsafeUnpin for DistributedError
impl UnwindSafe for DistributedError
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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<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
Compare self to
key and return true if they are equal.§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