pub enum AppErrorKind {
Show 13 variants
Unauthorized,
BadRequest,
NotFound,
Conflict,
Internal,
PayloadTooLarge,
UnsupportedMediaType,
MethodNotAllowed,
ServiceUnavailable,
FormationCycle,
FormationMultipleCoordinators,
FormationNoCoordinator,
FormationAuthorityNotNarrowing,
}Expand description
Stable error identifier. Adding a variant is a non-breaking change;
renaming one IS breaking (clients pin on type).
Variants§
BadRequest
NotFound
Conflict
Internal
PayloadTooLarge
FUZZ-WAVE-1 MED-1: axum’s built-in extractors (Json, Path, Query)
reject malformed input with text/plain. We catch those rejections
in the response-mapping middleware and re-emit them as
problem+json under these stable type URIs.
UnsupportedMediaType
MethodNotAllowed
FUZZ-CRIT-1: the upstream event store (JetStream/NATS) is
unreachable or timing out. Distinct from Internal because the
HTTP control plane itself is healthy — only the data tier behind
/v1/events is degraded.
FormationCycle
Discriminants from ADR-0010 §Enforcement: cellos-server admission
gate rejection reasons. Surfaced via application/problem+json
so cellctl can switch on type without parsing detail.
FormationMultipleCoordinators
FormationNoCoordinator
FormationAuthorityNotNarrowing
Implementations§
Source§impl AppErrorKind
impl AppErrorKind
Trait Implementations§
Source§impl Clone for AppErrorKind
impl Clone for AppErrorKind
Source§fn clone(&self) -> AppErrorKind
fn clone(&self) -> AppErrorKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AppErrorKind
impl Debug for AppErrorKind
impl Copy for AppErrorKind
Auto Trait Implementations§
impl Freeze for AppErrorKind
impl RefUnwindSafe for AppErrorKind
impl Send for AppErrorKind
impl Sync for AppErrorKind
impl Unpin for AppErrorKind
impl UnsafeUnpin for AppErrorKind
impl UnwindSafe for AppErrorKind
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