#[non_exhaustive]pub enum MetaStorageError<MErr> {
IntegerConversionError(TryFromIntError),
InvalidRunState(String),
InvalidExplosion {
task: &'static str,
dim: &'static str,
},
MissingTicketSummary {
task: &'static str,
},
MissingResolution {
dim: &'static str,
deps: Vec<(&'static str, usize)>,
},
Internal(&'static str),
SchemaLocked(String),
LockLost(String),
Backend(MErr),
RebuildBackend(MemMetaError),
}Expand description
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.
IntegerConversionError(TryFromIntError)
An integer conversion error.
InvalidRunState(String)
Encountered an invalid run state.
InvalidExplosion
Invoked an explosion on an already-resolved dimension.
Fields
MissingTicketSummary
Missing ticket summary for a task.
MissingResolution
Missing resolution for a dimension.
Fields
Internal(&'static str)
Unspecified internal error.
SchemaLocked(String)
Tried to run two instances of Operon against the same metadata schema.
LockLost(String)
Lost the advisory lock on the metadata schema.
Backend(MErr)
An error from a specific metadata backend.
RebuildBackend(MemMetaError)
An error from the scratch in-memory store during the rebuild phase.
Trait Implementations§
Source§impl<MErr: Debug> Debug for MetaStorageError<MErr>
impl<MErr: Debug> Debug for MetaStorageError<MErr>
Source§impl<MErr> Display for MetaStorageError<MErr>where
MErr: Display,
impl<MErr> Display for MetaStorageError<MErr>where
MErr: Display,
Source§impl<MErr> Error for MetaStorageError<MErr>
impl<MErr> Error for MetaStorageError<MErr>
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<MemMetaError> for MetaStorageError<MemMetaError>
impl From<MemMetaError> for MetaStorageError<MemMetaError>
Source§fn from(err: MemMetaError) -> Self
fn from(err: MemMetaError) -> Self
Converts to this type from the input type.
Source§impl<UErr, SErr, MErr> From<MetaStorageError<MErr>> for SchedulerError<UErr, SErr, MErr>
impl<UErr, SErr, MErr> From<MetaStorageError<MErr>> for SchedulerError<UErr, SErr, MErr>
Source§fn from(source: MetaStorageError<MErr>) -> Self
fn from(source: MetaStorageError<MErr>) -> Self
Converts to this type from the input type.
Source§impl From<MetaStorageError<MemMetaError>> for MetaStorageError<AnyBackendError>
Lifts an in-memory backend error into the runtime-selected backend’s error.
impl From<MetaStorageError<MemMetaError>> for MetaStorageError<AnyBackendError>
Lifts an in-memory backend error into the runtime-selected backend’s error.
Source§fn from(err: MetaStorageError<MemMetaError>) -> Self
fn from(err: MetaStorageError<MemMetaError>) -> Self
Converts to this type from the input type.
Source§impl From<MetaStorageError<PsqlMetaError>> for MetaStorageError<AnyBackendError>
Lifts a Postgres backend error into the runtime-selected backend’s error.
impl From<MetaStorageError<PsqlMetaError>> for MetaStorageError<AnyBackendError>
Lifts a Postgres backend error into the runtime-selected backend’s error.
Source§fn from(err: MetaStorageError<PsqlMetaError>) -> Self
fn from(err: MetaStorageError<PsqlMetaError>) -> Self
Converts to this type from the input type.
Source§impl<T> From<PoisonError<T>> for MetaStorageError<MemMetaError>
impl<T> From<PoisonError<T>> for MetaStorageError<MemMetaError>
Source§fn from(_: PoisonError<T>) -> Self
fn from(_: PoisonError<T>) -> Self
Converts to this type from the input type.
Source§impl From<PsqlMetaError> for MetaStorageError<PsqlMetaError>
impl From<PsqlMetaError> for MetaStorageError<PsqlMetaError>
Source§fn from(err: PsqlMetaError) -> Self
fn from(err: PsqlMetaError) -> Self
Converts to this type from the input type.
Source§impl<MErr> From<TryFromIntError> for MetaStorageError<MErr>
impl<MErr> From<TryFromIntError> for MetaStorageError<MErr>
Source§fn from(source: TryFromIntError) -> Self
fn from(source: TryFromIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<MErr> Freeze for MetaStorageError<MErr>where
MErr: Freeze,
impl<MErr> RefUnwindSafe for MetaStorageError<MErr>where
MErr: RefUnwindSafe,
impl<MErr> Send for MetaStorageError<MErr>where
MErr: Send,
impl<MErr> Sync for MetaStorageError<MErr>where
MErr: Sync,
impl<MErr> Unpin for MetaStorageError<MErr>where
MErr: Unpin,
impl<MErr> UnsafeUnpin for MetaStorageError<MErr>where
MErr: UnsafeUnpin,
impl<MErr> UnwindSafe for MetaStorageError<MErr>where
MErr: UnwindSafe,
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 moreSource§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more