Struct tarpc::ServerError
source · #[non_exhaustive]pub struct ServerError {
pub kind: ErrorKind,
pub detail: String,
}
Expand description
An error indicating the server aborted the request early, e.g., due to request throttling.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.kind: ErrorKind
The type of error that occurred to fail the request.
detail: String
A message describing more detail about the error that occurred.
Trait Implementations§
source§impl Clone for ServerError
impl Clone for ServerError
source§fn clone(&self) -> ServerError
fn clone(&self) -> ServerError
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 ServerError
impl Debug for ServerError
source§impl<'de> Deserialize<'de> for ServerError
impl<'de> Deserialize<'de> for ServerError
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for ServerError
impl Display for ServerError
source§impl Error for ServerError
impl Error for ServerError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<ServerError> for RpcError
impl From<ServerError> for RpcError
source§fn from(source: ServerError) -> Self
fn from(source: ServerError) -> Self
Converts to this type from the input type.
source§impl Hash for ServerError
impl Hash for ServerError
source§impl PartialEq<ServerError> for ServerError
impl PartialEq<ServerError> for ServerError
source§fn eq(&self, other: &ServerError) -> bool
fn eq(&self, other: &ServerError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ServerError
impl Serialize for ServerError
impl Eq for ServerError
impl StructuralEq for ServerError
impl StructuralPartialEq for ServerError
Auto Trait Implementations§
impl RefUnwindSafe for ServerError
impl Send for ServerError
impl Sync for ServerError
impl Unpin for ServerError
impl UnwindSafe for ServerError
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.