pub struct GrpcError {
pub sqlstate: Option<String>,
pub message: String,
pub detail: Option<String>,
pub hint: Option<String>,
pub error_source: Option<String>,
}Expand description
gRPC-specific error information.
This wraps additional error details from Hyper’s gRPC error responses, including SQLSTATE codes, hints, and detailed error messages.
Fields§
§sqlstate: Option<String>The SQLSTATE error code (e.g., “42703” for undefined column)
message: StringThe primary error message
detail: Option<String>Additional detail about the error
hint: Option<String>A hint for how to resolve the error
error_source: Option<String>The error source (“User” or “System”)
Trait Implementations§
Source§impl Error for GrpcError
impl Error for GrpcError
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()
Auto Trait Implementations§
impl Freeze for GrpcError
impl RefUnwindSafe for GrpcError
impl Send for GrpcError
impl Sync for GrpcError
impl Unpin for GrpcError
impl UnsafeUnpin for GrpcError
impl UnwindSafe for GrpcError
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