#[non_exhaustive]pub enum JobDefinitionCatalogSyncError {
ActiveScheduleForAbsentJobType(JobScheduleJobTypeReference),
ActiveScheduleForDisabledJobType(JobScheduleJobTypeReference),
CriticalSectionTimeoutFailure(Error),
ScheduleLockFailure(Error),
DefinitionLockFailure(Error),
ScheduleCheckFailure(Error),
ValidationFailure(Error),
DefinitionInspectFailure(Error),
DefinitionSyncFailure {
job_type: String,
source: Error,
},
DisableAbsentFailure(Error),
}Expand description
Error returned while applying a catalog-owned job-definition sync.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ActiveScheduleForAbsentJobType(JobScheduleJobTypeReference)
An active schedule references an enabled scoped definition absent from the catalog.
ActiveScheduleForDisabledJobType(JobScheduleJobTypeReference)
An active schedule references a catalog definition that would be disabled.
CriticalSectionTimeoutFailure(Error)
Applying transaction-local statement timeout bounds failed.
ScheduleLockFailure(Error)
Locking job_schedules before disabling definitions failed.
DefinitionLockFailure(Error)
Locking job_definitions before disabling definitions failed.
ScheduleCheckFailure(Error)
Checking active schedules before disabling definitions failed.
ValidationFailure(Error)
Sync input failed validation before any catalog writes.
DefinitionInspectFailure(Error)
Inspecting existing definitions before sync failed.
DefinitionSyncFailure
Syncing one catalog definition failed.
Fields
DisableAbsentFailure(Error)
Disabling absent scoped definitions failed.
Trait Implementations§
Source§impl Error for JobDefinitionCatalogSyncError
impl Error for JobDefinitionCatalogSyncError
Source§fn source(&self) -> Option<&(dyn StdError + 'static)>
fn source(&self) -> Option<&(dyn StdError + '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 JobDefinitionCatalogSyncError
impl !RefUnwindSafe for JobDefinitionCatalogSyncError
impl Send for JobDefinitionCatalogSyncError
impl Sync for JobDefinitionCatalogSyncError
impl Unpin for JobDefinitionCatalogSyncError
impl UnsafeUnpin for JobDefinitionCatalogSyncError
impl !UnwindSafe for JobDefinitionCatalogSyncError
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