#[non_exhaustive]pub enum Code {
Show 18 variants
Unauthenticated,
KeyExpired,
KeyRevoked,
ForbiddenRole,
KeyIdMismatch,
RewriteInProgress,
LeaseHeld,
RewriteIncomplete,
RewriteEnded,
QuotaExceeded,
ItemTooLarge,
ContentMismatch,
NotFound,
InvalidId,
InvalidRequest,
RateLimited,
ServiceUnavailable,
Unknown,
}Expand description
A problem’s stable code.
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.
Unauthenticated
No key, or an unknown one.
KeyExpired
The API key has expired.
KeyRevoked
The API key was revoked.
ForbiddenRole
A read-only key tried to write.
KeyIdMismatch
The workspace’s data key changed.
RewriteInProgress
The workspace’s encryption is being changed.
LeaseHeld
Another key holds the rewrite session.
RewriteIncomplete
commitRewrite before every item was staged.
RewriteEnded
A rewrite with this new key id was aborted.
QuotaExceeded
The workspace is full.
ItemTooLarge
The item is larger than the server takes.
ContentMismatch
The content does not match what was announced.
NotFound
As named.
InvalidId
A malformed id.
InvalidRequest
A malformed request.
RateLimited
Too many failed authentications from this address.
The server is failing closed.
Unknown
A code this client does not know.
Implementations§
Trait Implementations§
impl Copy for Code
impl Eq for Code
impl StructuralPartialEq for Code
Auto Trait Implementations§
impl Freeze for Code
impl RefUnwindSafe for Code
impl Send for Code
impl Sync for Code
impl Unpin for Code
impl UnsafeUnpin for Code
impl UnwindSafe for Code
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