pub enum ProcessorError {
Unauthorized,
NotFound,
BadRequest,
GeneralError,
Other,
}Expand description
Coarse subset of Redis Cloud’s processor error codes.
The full server-side enumeration has 600+ values; this type captures the
few that callers typically branch on. Unknown codes fall through to
Self::Other.
Variants§
Authentication failed for the requested operation.
NotFound
The target resource was not found.
BadRequest
The request was malformed or missing required fields.
GeneralError
Unspecified processor failure.
Other
Catch-all for codes not enumerated here.
Trait Implementations§
Source§impl Clone for ProcessorError
impl Clone for ProcessorError
Source§fn clone(&self) -> ProcessorError
fn clone(&self) -> ProcessorError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ProcessorError
impl Debug for ProcessorError
Source§impl<'de> Deserialize<'de> for ProcessorError
impl<'de> Deserialize<'de> for ProcessorError
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
Auto Trait Implementations§
impl Freeze for ProcessorError
impl RefUnwindSafe for ProcessorError
impl Send for ProcessorError
impl Sync for ProcessorError
impl Unpin for ProcessorError
impl UnsafeUnpin for ProcessorError
impl UnwindSafe for ProcessorError
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