pub enum TransactionStoreError {
Io(Error),
Sqlite(Error),
Json(Error),
DatabaseInvariant(String),
NotFound(String),
InvalidTransition {
from: JobState,
to: JobState,
},
AuditChainMissing(&'static str),
ConcurrentStatusChange(String),
}Variants§
Io(Error)
Sqlite(Error)
Json(Error)
DatabaseInvariant(String)
NotFound(String)
InvalidTransition
AuditChainMissing(&'static str)
ConcurrentStatusChange(String)
update_status’s compare-and-swap UPDATE ... WHERE status = <observed>
matched zero rows: another writer changed status between our read and
our write. This is a lost race, not a validation failure — the caller
(see dispatcher::update_terminal_status) already retries on any error
and re-reads the current status, so surfacing this distinctly (rather
than silently overwriting a transition we never validated) is safe to
retry.
Trait Implementations§
Source§impl Debug for TransactionStoreError
impl Debug for TransactionStoreError
Source§impl Display for TransactionStoreError
impl Display for TransactionStoreError
Source§impl Error for TransactionStoreError
impl Error for TransactionStoreError
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 TransactionStoreError
impl From<Error> for TransactionStoreError
Source§impl From<Error> for TransactionStoreError
impl From<Error> for TransactionStoreError
Source§impl From<Error> for TransactionStoreError
impl From<Error> for TransactionStoreError
Source§impl From<TransactionStoreError> for DaemonStateError
impl From<TransactionStoreError> for DaemonStateError
Source§fn from(source: TransactionStoreError) -> Self
fn from(source: TransactionStoreError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for TransactionStoreError
impl !UnwindSafe for TransactionStoreError
impl Freeze for TransactionStoreError
impl Send for TransactionStoreError
impl Sync for TransactionStoreError
impl Unpin for TransactionStoreError
impl UnsafeUnpin for TransactionStoreError
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more