#[non_exhaustive]pub enum Category {
Validation,
Authorization,
Timeout,
Availability,
Execution,
Response,
Pagination,
Internal,
}Expand description
The coarse class a failure belongs to, as the action reports it.
The platform derives its own canonical category from the code and keeps this one beside it, so drift between the two stays visible rather than silently overriding either.
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.
Validation
The call cannot be accepted as written.
Authorization
The current user may not do this.
Timeout
It did not finish in time.
Availability
Something it depends on is down.
Execution
It was accepted and then failed.
Response
What came back could not be read.
Pagination
Paging over the result failed.
Internal
A fault in the action itself.
Implementations§
Trait Implementations§
impl Copy for Category
impl Eq for Category
impl StructuralPartialEq for Category
Auto Trait Implementations§
impl Freeze for Category
impl RefUnwindSafe for Category
impl Send for Category
impl Sync for Category
impl Unpin for Category
impl UnsafeUnpin for Category
impl UnwindSafe for Category
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