#[non_exhaustive]pub enum UiError {
Show 17 variants
UnsupportedVersion,
InvalidFrame,
InvalidRequest,
PayloadTooLarge,
IdempotencyRequired,
IdempotencyPending,
IdempotencyConflict,
AuthenticationRequired,
Forbidden,
Busy,
Unavailable,
Cancelled,
DeadlineExceeded,
Closed,
SubscriptionNotFound,
SequenceExhausted,
BackendFailure,
}Expand description
Stable wire error codes; errors never contain credentials or application data.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
UnsupportedVersion
An unsupported protocol input was presented.
InvalidFrame
The JSON frame is malformed.
InvalidRequest
An identifier or operation violates the contract.
PayloadTooLarge
Encoded or decoded data exceeds the selected budget.
IdempotencyRequired
A command omitted its validated idempotency key.
IdempotencyPending
An equivalent command is still executing or requires effect reconciliation.
IdempotencyConflict
A key was reused for a semantically different operation.
AuthenticationRequired
A valid authenticated principal is required.
Forbidden
The owning authorization policy denies this operation.
Busy
Admission or subscription capacity is exhausted.
The selected transport/backend is unavailable.
Cancelled
Cooperative cancellation was requested.
DeadlineExceeded
The monotonic execution budget elapsed.
Closed
The surface no longer admits operations.
SubscriptionNotFound
A subscription no longer exists in this surface generation.
SequenceExhausted
A sequence cannot safely advance without identity reuse.
BackendFailure
An owning backend failed; its raw detail remains outside the wire response.
Trait Implementations§
impl Copy for UiError
Source§impl<'de> Deserialize<'de> for UiError
impl<'de> Deserialize<'de> for UiError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for UiError
Source§impl Error for UiError
impl Error for UiError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()