pub enum ContextError {
MissingKey {
key: ContextKey,
info: ErrorInfo,
},
Serialization(ErrorInfo),
Other(ErrorInfo),
}Expand description
Context errors.
Variants§
MissingKey
A requested context key was not present.
Fields
§
key: ContextKeyMissing context key.
Serialization(ErrorInfo)
JSON serialization or deserialization failed.
Other(ErrorInfo)
Any other context failure.
Trait Implementations§
Source§impl Clone for ContextError
impl Clone for ContextError
Source§fn clone(&self) -> ContextError
fn clone(&self) -> ContextError
Returns a duplicate 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 ContextError
impl Debug for ContextError
Source§impl<'de> Deserialize<'de> for ContextError
impl<'de> Deserialize<'de> for ContextError
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 PartialEq for ContextError
impl PartialEq for ContextError
Source§impl Serialize for ContextError
impl Serialize for ContextError
impl Eq for ContextError
impl StructuralPartialEq for ContextError
Auto Trait Implementations§
impl Freeze for ContextError
impl RefUnwindSafe for ContextError
impl Send for ContextError
impl Sync for ContextError
impl Unpin for ContextError
impl UnsafeUnpin for ContextError
impl UnwindSafe for ContextError
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