pub enum WorkError {
Overflow,
BudgetExceeded {
counter: &'static str,
observed: u64,
maximum: u64,
},
}Expand description
Exact work-accounting failures.
Variants§
Overflow
One counter could not be represented exactly.
BudgetExceeded
Executed work exceeded its admitted bound.
Trait Implementations§
impl Copy for WorkError
impl Eq for WorkError
Source§impl Error for WorkError
impl Error for WorkError
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 From<WorkError> for AttributeLookupError
impl From<WorkError> for AttributeLookupError
Source§impl From<WorkError> for AttributeListError
impl From<WorkError> for AttributeListError
Source§impl From<WorkError> for AttributeMutationError
impl From<WorkError> for AttributeMutationError
Source§impl From<WorkError> for BlobBuildError
impl From<WorkError> for BlobBuildError
Source§impl From<WorkError> for BlobReadError
impl From<WorkError> for BlobReadError
Source§impl From<WorkError> for CheckpointError
impl From<WorkError> for CheckpointError
Source§impl From<WorkError> for ClosureError
impl From<WorkError> for ClosureError
Source§impl From<WorkError> for ExtentCloneError
impl From<WorkError> for ExtentCloneError
Source§impl From<WorkError> for ExtentMutationError
impl From<WorkError> for ExtentMutationError
Source§impl From<WorkError> for FileRangeReadError
impl From<WorkError> for FileRangeReadError
Source§impl From<WorkError> for FileRecordReadError
impl From<WorkError> for FileRecordReadError
Source§impl From<WorkError> for FileTableMutationError
impl From<WorkError> for FileTableMutationError
Source§impl From<WorkError> for GenerationMutationError
impl From<WorkError> for GenerationMutationError
Source§impl From<WorkError> for DirectoryReadError
impl From<WorkError> for DirectoryReadError
Source§impl From<WorkError> for MergeGenerationError
impl From<WorkError> for MergeGenerationError
Source§impl From<WorkError> for MutationPlanError
impl From<WorkError> for MutationPlanError
Source§impl From<WorkError> for PathLookupError
impl From<WorkError> for PathLookupError
Source§impl From<WorkError> for AuthenticatedProbeError
impl From<WorkError> for AuthenticatedProbeError
Source§impl From<WorkError> for PublicationError
impl From<WorkError> for PublicationError
Source§impl From<WorkError> for ExtentReadError
impl From<WorkError> for ExtentReadError
Source§impl From<WorkError> for TreeReadError
impl From<WorkError> for TreeReadError
Source§impl From<WorkError> for RegularMutationError
impl From<WorkError> for RegularMutationError
Source§impl From<WorkError> for GenerationTransferError
impl From<WorkError> for GenerationTransferError
Source§impl From<WorkError> for TreeMutationError
impl From<WorkError> for TreeMutationError
Source§impl From<WorkError> for CaptureError
impl From<WorkError> for CaptureError
Source§impl From<WorkError> for MountLifecycleError
impl From<WorkError> for MountLifecycleError
Source§impl From<WorkError> for MaterializeError
impl From<WorkError> for MaterializeError
Source§impl From<WorkError> for NotificationError
impl From<WorkError> for NotificationError
Source§impl From<WorkError> for AuthorityStoreError
impl From<WorkError> for AuthorityStoreError
Source§impl From<WorkError> for ObjectStoreError
impl From<WorkError> for ObjectStoreError
Source§impl From<WorkError> for NativeWatchError
impl From<WorkError> for NativeWatchError
Source§impl From<WorkError> for WorkspaceError
impl From<WorkError> for WorkspaceError
impl StructuralPartialEq for WorkError
Auto Trait Implementations§
impl Freeze for WorkError
impl RefUnwindSafe for WorkError
impl Send for WorkError
impl Sync for WorkError
impl Unpin for WorkError
impl UnsafeUnpin for WorkError
impl UnwindSafe for WorkError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request