pub enum IdempotentKeyError {
EmptyKey,
KeyTooLong(usize),
}
Expand description
Error that can be returned when constructing IdempotencyKey
Variants§
EmptyKey
Idempotency key cannot be empty
KeyTooLong(usize)
Idempotency key cannot be longer than 255 characters
Trait Implementations§
Source§impl Debug for IdempotentKeyError
impl Debug for IdempotentKeyError
Source§impl Display for IdempotentKeyError
impl Display for IdempotentKeyError
Source§impl Error for IdempotentKeyError
impl Error for IdempotentKeyError
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()
Auto Trait Implementations§
impl Freeze for IdempotentKeyError
impl RefUnwindSafe for IdempotentKeyError
impl Send for IdempotentKeyError
impl Sync for IdempotentKeyError
impl Unpin for IdempotentKeyError
impl UnwindSafe for IdempotentKeyError
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