pub enum ApiError {
Core(CoreError),
MethodNotAllowed(String),
}Expand description
An API error that renders as { "error": "...", "kind": "..." }.
Variants§
Core(CoreError)
A typed core error mapped to a precise status code.
MethodNotAllowed(String)
The operation exists but the active fleet backend does not support it (e.g. workspace-registry ops under k8s) → 405. (#76)
Implementations§
Source§impl ApiError
impl ApiError
Sourcepub fn unsupported_on_backend() -> Self
pub fn unsupported_on_backend() -> Self
The requested operation is real but not served by the active backend —
e.g. the workspace registry/config plane under k8s, where workspaces are
CalibanTask/namespace-driven rather than a prospero registry. (#76)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ApiError
impl !RefUnwindSafe for ApiError
impl Send for ApiError
impl Sync for ApiError
impl Unpin for ApiError
impl UnsafeUnpin for ApiError
impl !UnwindSafe for ApiError
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
Converts
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>
Converts
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