Enum tonic_richer_error::ErrorDetail
source · pub enum ErrorDetail {
RetryInfo(RetryInfo),
DebugInfo(DebugInfo),
QuotaFailure(QuotaFailure),
ErrorInfo(ErrorInfo),
PreconditionFailure(PreconditionFailure),
BadRequest(BadRequest),
RequestInfo(RequestInfo),
ResourceInfo(ResourceInfo),
Help(Help),
LocalizedMessage(LocalizedMessage),
}
Expand description
Wraps the structs corresponding to the standard error messages, allowing the implementation and handling of vectors containing any of them.
Variants§
RetryInfo(RetryInfo)
Wraps the RetryInfo
struct.
DebugInfo(DebugInfo)
Wraps the DebugInfo
struct.
QuotaFailure(QuotaFailure)
Wraps the QuotaFailure
struct.
ErrorInfo(ErrorInfo)
Wraps the ErrorInfo
struct.
PreconditionFailure(PreconditionFailure)
Wraps the PreconditionFailure
struct.
BadRequest(BadRequest)
Wraps the BadRequest
struct.
RequestInfo(RequestInfo)
Wraps the RequestInfo
struct.
ResourceInfo(ResourceInfo)
Wraps the ResourceInfo
struct.
Help(Help)
Wraps the Help
struct.
LocalizedMessage(LocalizedMessage)
Wraps the LocalizedMessage
struct.
Trait Implementations§
source§impl Clone for ErrorDetail
impl Clone for ErrorDetail
source§fn clone(&self) -> ErrorDetail
fn clone(&self) -> ErrorDetail
Returns a copy of the value. Read more
1.0.0 · 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 ErrorDetail
impl Debug for ErrorDetail
source§impl From<BadRequest> for ErrorDetail
impl From<BadRequest> for ErrorDetail
source§fn from(err_detail: BadRequest) -> Self
fn from(err_detail: BadRequest) -> Self
Converts to this type from the input type.
source§impl From<DebugInfo> for ErrorDetail
impl From<DebugInfo> for ErrorDetail
source§impl From<ErrorInfo> for ErrorDetail
impl From<ErrorInfo> for ErrorDetail
source§impl From<Help> for ErrorDetail
impl From<Help> for ErrorDetail
source§impl From<LocalizedMessage> for ErrorDetail
impl From<LocalizedMessage> for ErrorDetail
source§fn from(err_detail: LocalizedMessage) -> Self
fn from(err_detail: LocalizedMessage) -> Self
Converts to this type from the input type.
source§impl From<PreconditionFailure> for ErrorDetail
impl From<PreconditionFailure> for ErrorDetail
source§fn from(err_detail: PreconditionFailure) -> Self
fn from(err_detail: PreconditionFailure) -> Self
Converts to this type from the input type.
source§impl From<QuotaFailure> for ErrorDetail
impl From<QuotaFailure> for ErrorDetail
source§fn from(err_detail: QuotaFailure) -> Self
fn from(err_detail: QuotaFailure) -> Self
Converts to this type from the input type.
source§impl From<RequestInfo> for ErrorDetail
impl From<RequestInfo> for ErrorDetail
source§fn from(err_detail: RequestInfo) -> Self
fn from(err_detail: RequestInfo) -> Self
Converts to this type from the input type.
source§impl From<ResourceInfo> for ErrorDetail
impl From<ResourceInfo> for ErrorDetail
source§fn from(err_detail: ResourceInfo) -> Self
fn from(err_detail: ResourceInfo) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for ErrorDetail
impl Send for ErrorDetail
impl Sync for ErrorDetail
impl Unpin for ErrorDetail
impl UnwindSafe for ErrorDetail
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request