pub struct GrpcErrorInfo {
pub code: i32,
pub message: String,
pub hint: Option<String>,
pub grpc_code: Code,
}Expand description
Extracted error information from a gRPC status.
This structure contains all the error information that was transmitted over gRPC, including both the standard gRPC fields and our custom structured error details.
Fields§
§code: i32§message: String§hint: Option<String>§grpc_code: CodeTrait Implementations§
Source§impl Clone for GrpcErrorInfo
impl Clone for GrpcErrorInfo
Source§impl Debug for GrpcErrorInfo
impl Debug for GrpcErrorInfo
Source§impl TryFrom<Status> for GrpcErrorInfo
Attempts to parse structured error information from a tonic::Status.
impl TryFrom<Status> for GrpcErrorInfo
Attempts to parse structured error information from a tonic::Status.
This implementation expects the status details to contain a JSON-encoded
GrpcErrorDetails structure. If parsing fails, a serde_json::Error is
returned.
Auto Trait Implementations§
impl Freeze for GrpcErrorInfo
impl RefUnwindSafe for GrpcErrorInfo
impl Send for GrpcErrorInfo
impl Sync for GrpcErrorInfo
impl Unpin for GrpcErrorInfo
impl UnsafeUnpin for GrpcErrorInfo
impl UnwindSafe for GrpcErrorInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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