#[non_exhaustive]pub enum ErrorCode {
Disabled,
NotFound,
InvalidInput,
CapabilityUnavailable,
Unavailable,
RevisionConflict,
Unsupported,
LimitExceeded,
Cancelled,
Internal,
Forbidden,
ConfirmationRequired,
}Expand description
Stable structured failure categories.
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.
Disabled
External control has not been explicitly activated.
NotFound
The action or resource is unknown.
InvalidInput
Parameters fail their declared schema or bounds.
The platform lacks a required capability.
The action is temporarily unavailable (including modal UI states).
RevisionConflict
The caller’s expected revision differs from the current revision.
Unsupported
An operation or atomic transaction is unsupported.
LimitExceeded
A bounded collection or response limit was exceeded.
Cancelled
A task was cancelled at a defined interruption point.
Internal
The host violated its action contract or returned an internal failure.
Forbidden
The application or the user does not allow this action for external control.
ConfirmationRequired
The user was asked to confirm the action and has not answered yet; retry later.
Implementations§
Trait Implementations§
impl Copy for ErrorCode
impl Eq for ErrorCode
impl StructuralPartialEq for ErrorCode
Auto Trait Implementations§
impl Forget for ErrorCode
impl Freeze for ErrorCode
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnsafeUnpin for ErrorCode
impl UnwindSafe for ErrorCode
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