pub enum DurableEventQueueError {
EventQueue(EventQueueError),
RocksDb(Error),
PoisonedLock,
Serialize {
source: Error,
},
Deserialize {
id: u64,
source: Error,
},
InvalidKeyLength {
actual: usize,
},
IdOverflow,
UnknownEvent {
id: u64,
},
}Expand description
Error returned by durable queue operations.
Variants§
EventQueue(EventQueueError)
Error from the in-memory ready queue.
RocksDb(Error)
Error returned by RocksDB.
PoisonedLock
An internal durable queue lock was poisoned by a panicking thread.
Serialize
Failed to serialize an event payload before writing it to RocksDB.
Deserialize
Failed to deserialize a persisted event payload.
InvalidKeyLength
Found a RocksDB key that is not a valid durable event id.
IdOverflow
The queue cannot assign another event id.
UnknownEvent
The requested event id is not present in the durable store.
Trait Implementations§
Source§impl Debug for DurableEventQueueError
impl Debug for DurableEventQueueError
Source§impl Display for DurableEventQueueError
impl Display for DurableEventQueueError
Source§impl Error for DurableEventQueueError
impl Error for DurableEventQueueError
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 From<Error> for DurableEventQueueError
impl From<Error> for DurableEventQueueError
Source§impl From<EventQueueError> for DurableEventQueueError
impl From<EventQueueError> for DurableEventQueueError
Source§fn from(source: EventQueueError) -> Self
fn from(source: EventQueueError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for DurableEventQueueError
impl !UnwindSafe for DurableEventQueueError
impl Freeze for DurableEventQueueError
impl Send for DurableEventQueueError
impl Sync for DurableEventQueueError
impl Unpin for DurableEventQueueError
impl UnsafeUnpin for DurableEventQueueError
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