#[non_exhaustive]pub enum ResponseSeverity {
Unspecified,
Informational,
Success,
Redirection,
ClientError,
ServerError,
}Expand description
Cross-family outcome severity for a response or RPC result.
Renderers may use this for grouping, color, or ordering without re-deriving transport-specific semantics from raw status strings.
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.
Unspecified
Severity was not determined or does not apply.
Informational
Informational outcome (HTTP 1xx; gRPC equivalents are rare).
Success
Successful outcome (HTTP 2xx; gRPC OK).
Redirection
Redirection or alternate continuation (HTTP 3xx).
ClientError
Client-side fault (HTTP 4xx; most gRPC non-OK codes except internal/unavailable).
ServerError
Server-side fault (HTTP 5xx; gRPC INTERNAL, UNAVAILABLE, etc.).
Implementations§
Trait Implementations§
Source§impl Clone for ResponseSeverity
impl Clone for ResponseSeverity
Source§fn clone(&self) -> ResponseSeverity
fn clone(&self) -> ResponseSeverity
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 moreimpl Copy for ResponseSeverity
Source§impl Debug for ResponseSeverity
impl Debug for ResponseSeverity
Source§impl Default for ResponseSeverity
impl Default for ResponseSeverity
Source§fn default() -> ResponseSeverity
fn default() -> ResponseSeverity
Returns the “default value” for a type. Read more
impl Eq for ResponseSeverity
Source§impl Hash for ResponseSeverity
impl Hash for ResponseSeverity
Source§impl PartialEq for ResponseSeverity
impl PartialEq for ResponseSeverity
Source§fn eq(&self, other: &ResponseSeverity) -> bool
fn eq(&self, other: &ResponseSeverity) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ResponseSeverity
Auto Trait Implementations§
impl Freeze for ResponseSeverity
impl RefUnwindSafe for ResponseSeverity
impl Send for ResponseSeverity
impl Sync for ResponseSeverity
impl Unpin for ResponseSeverity
impl UnsafeUnpin for ResponseSeverity
impl UnwindSafe for ResponseSeverity
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