pub enum RequestIdError {
CustomSerdeError(String),
EmptySerializer,
KeyWasNone,
UnsupportedTypeBool,
UnsupportedTypeF32,
UnsupportedTypeF64,
UnsupportedTypeUnit,
UnsupportedTypeUnitStruct,
}
Expand description
An error during the calculation of the RequestId.
Since we use serde for serializing a data type into a hash, this has to support traits that serde expects, such as Display
Variants§
CustomSerdeError(String)
An unknown error occurred inside serde
.
EmptySerializer
The serializer was not given any data.
KeyWasNone
A map was serialized with a key of None
.
UnsupportedTypeBool
The serializer received a bool
, which it does not support.
UnsupportedTypeF32
The serializer received a f32
, which it does not support.
UnsupportedTypeF64
The serializer received a f64
, which it does not support.
UnsupportedTypeUnit
The serializer received a ()
, which it does not support.
UnsupportedTypeUnitStruct
The serializer received an enum unit variant, which it does not support.
Trait Implementations§
source§impl Clone for RequestIdError
impl Clone for RequestIdError
source§fn clone(&self) -> RequestIdError
fn clone(&self) -> RequestIdError
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 RequestIdError
impl Debug for RequestIdError
source§impl Display for RequestIdError
impl Display for RequestIdError
source§impl Error for RequestIdError
impl Error for RequestIdError
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()
source§impl Error for RequestIdError
impl Error for RequestIdError
source§impl From<RequestIdError> for AgentError
impl From<RequestIdError> for AgentError
source§fn from(source: RequestIdError) -> Self
fn from(source: RequestIdError) -> Self
Converts to this type from the input type.
source§impl Ord for RequestIdError
impl Ord for RequestIdError
source§fn cmp(&self, other: &RequestIdError) -> Ordering
fn cmp(&self, other: &RequestIdError) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for RequestIdError
impl PartialEq for RequestIdError
source§impl PartialOrd for RequestIdError
impl PartialOrd for RequestIdError
impl Eq for RequestIdError
impl StructuralPartialEq for RequestIdError
Auto Trait Implementations§
impl Freeze for RequestIdError
impl RefUnwindSafe for RequestIdError
impl Send for RequestIdError
impl Sync for RequestIdError
impl Unpin for RequestIdError
impl UnwindSafe for RequestIdError
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)