pub enum Error<E> {
Configuration(BuildError),
Store(E),
Document(Error),
Corrupt(String),
NotFound,
AlreadyExists(Version),
Conflict {
expected: Version,
observed: Option<Version>,
},
Incompatible(String),
InvalidLeaseDuration,
AttemptOverflow,
}Expand description
A queue operation error.
Variants§
Configuration(BuildError)
Queue configuration is invalid.
Store(E)
The object store failed independently of a conditional-write conflict.
Document(Error)
JSON encoding or decoding failed.
Corrupt(String)
The stored document violates a queue invariant.
NotFound
The queue object does not exist.
AlreadyExists(Version)
Conditional creation found an existing object.
Conflict
A mutation lost a compare-and-swap race.
Fields
Incompatible(String)
Stored format version, structure kind, or schema is incompatible.
InvalidLeaseDuration
Lease duration is zero, sub-millisecond, or cannot be represented.
AttemptOverflow
The claim count cannot be incremented further.
Trait Implementations§
Source§impl<E: Error + 'static> Error for Error<E>
impl<E: Error + 'static> Error for Error<E>
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<E> !RefUnwindSafe for Error<E>
impl<E> !UnwindSafe for Error<E>
impl<E> Freeze for Error<E>where
E: Freeze,
impl<E> Send for Error<E>where
E: Send,
impl<E> Sync for Error<E>where
E: Sync,
impl<E> Unpin for Error<E>where
E: Unpin,
impl<E> UnsafeUnpin for Error<E>where
E: UnsafeUnpin,
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