#[non_exhaustive]pub enum ErrorKind {
Show 14 variants
InvalidRequest,
Unauthorized,
ContentTooLarge,
PermissionDenied,
NotSupported,
NotFound,
MethodNotAllowed,
Gone,
AlreadyExists,
Conflict,
Unavailable,
OutcomeUnknown,
DataCorruption,
Internal,
}Expand description
Broad error category for caller or operator action.
Each kind implies one served HTTP status (status_for_error_kind in
loonfs-server); a code’s kind and its documented status in the API spec
must agree in spirit, and the server’s spec-table sync test enforces the
composition exactly.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InvalidRequest
Fix the request before retrying.
The request was not authorized. Fix credentials before retrying.
ContentTooLarge
The request body exceeds the deployment’s size limit for this
operation. Send a smaller payload (for uploads, prefer direct_put);
retrying unchanged will not succeed.
PermissionDenied
The caller may not perform this operation. Request access; retrying unchanged will not succeed.
NotSupported
The deployment does not implement this operation. Gate on the capability document instead of retrying.
NotFound
The requested object does not exist. Refresh state or choose another target.
MethodNotAllowed
The path routes somewhere, but not for this HTTP method. Fix the request; retrying unchanged will not succeed.
Gone
The target was deleted and its id is permanently retired. Do not retry; choose another target.
AlreadyExists
The create target already exists. Pick another id or treat this as idempotent.
Conflict
The request raced with current namespace state, or a caller-supplied precondition (base revision, expected head) no longer holds. Re-read fresh state, re-plan, and retry if desired.
The system is temporarily unavailable. Back off and retry.
OutcomeUnknown
The operation may have committed: its acknowledgment was lost. Retry with the same commit id or reconcile against namespace state; do not assume failure.
DataCorruption
Durable state is malformed. Treat this as operator or repair work.
Internal
LoonFS hit an internal failure. Capture details and report it.
Trait Implementations§
impl Copy for ErrorKind
impl Eq for ErrorKind
impl StructuralPartialEq for ErrorKind
Auto Trait Implementations§
impl Freeze for ErrorKind
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnsafeUnpin for ErrorKind
impl UnwindSafe for ErrorKind
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
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
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more