pub enum ClientError {
Public(PublicError),
Application(Box<ApplicationError>),
DetailsFree(DetailsFreeStatus),
Protocol(ProtocolFailure),
IdentifierGeneration(IdentifierGenerationError),
ConnectionFailure,
Tls(TlsClientFailure),
OutcomeUnknown(OutcomeUnknown),
}Expand description
A closed failure returned by the Rust SDK.
Variants§
Public(PublicError)
A fully checked public-safe RiffDB failure.
Application(Box<ApplicationError>)
A fully checked symbolic application failure.
DetailsFree(DetailsFreeStatus)
A valid status from a closed details-free boundary.
Protocol(ProtocolFailure)
The peer violated the public gRPC contract.
IdentifierGeneration(IdentifierGenerationError)
A local UUIDv7 source failed before the next submission.
ConnectionFailure
Channel construction or connection failed before a typed response existed.
Tls(TlsClientFailure)
Verified TLS configuration, trust-root, connection, or peer failure.
OutcomeUnknown(OutcomeUnknown)
Automatic same-input recovery exhausted its explicit attempt budget.
Implementations§
Source§impl ClientError
impl ClientError
Sourcepub fn from_status(status: Status) -> Self
pub fn from_status(status: Status) -> Self
Validates an untrusted non-OK gRPC status without trusting its message.
Sourcepub const fn public_error(&self) -> Option<&PublicError>
pub const fn public_error(&self) -> Option<&PublicError>
Returns a checked public error, when this is one.
Sourcepub const fn application_error(&self) -> Option<&ApplicationError>
pub const fn application_error(&self) -> Option<&ApplicationError>
Returns a checked symbolic application failure, when this is one.
Trait Implementations§
Source§impl Debug for ClientError
impl Debug for ClientError
Source§impl Display for ClientError
impl Display for ClientError
Source§impl Error for ClientError
impl Error for ClientError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<ClientError> for ApplicationClientError
impl From<ClientError> for ApplicationClientError
Source§fn from(error: ClientError) -> Self
fn from(error: ClientError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ClientError
impl !UnwindSafe for ClientError
impl Freeze for ClientError
impl Send for ClientError
impl Sync for ClientError
impl Unpin for ClientError
impl UnsafeUnpin for ClientError
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>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].