pub struct GrpcError { /* private fields */ }Expand description
Structured gRPC error carrying a canonical GrpcStatus and message.
Implementations§
Source§impl GrpcError
Inherent implementation of GrpcError.
impl GrpcError
Inherent implementation of GrpcError.
Sourcepub fn new<M>(status: GrpcStatus, message: M) -> Self
pub fn new<M>(status: GrpcStatus, message: M) -> Self
Sourcepub fn encoded_message(&self) -> String
pub fn encoded_message(&self) -> String
Returns the percent-encoded grpc-message header value.
§Returns
String- Wire-safe percent-encoded message.
Source§impl GrpcError
impl GrpcError
pub fn get_status(&self) -> GrpcStatus
pub fn get_mut_status(&mut self) -> &mut GrpcStatus
pub fn set_status(&mut self, val: GrpcStatus) -> &mut Self
pub fn get_message(&self) -> &String
pub fn get_mut_message(&mut self) -> &mut String
pub fn set_message(&mut self, val: String) -> &mut Self
Trait Implementations§
impl Eq for GrpcError
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()
impl StructuralPartialEq for GrpcError
Auto Trait Implementations§
impl Forget for GrpcError
impl Freeze for GrpcError
impl Move for GrpcError
impl RefUnwindSafe for GrpcError
impl Send for GrpcErrorwhere
RawVecInner: Send,
impl Sync for GrpcErrorwhere
RawVecInner: Sync,
impl Unpin for GrpcError
impl UnsafeUnpin for GrpcError
impl UnwindSafe for GrpcErrorwhere
RawVecInner: UnwindSafe,
Blanket Implementations§
impl<T> AnySend for T
impl<T> AnySendClone for T
impl<T> AnySendSync for T
impl<T> AnySendSyncClone for T
impl<T> AnySync for T
impl<T> AnySyncClone for T
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.