Skip to main content

MetaStorageError

Enum MetaStorageError 

Source
#[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

A metadata storage error.

Collects the backend-neutral domain errors any backend can raise, alongside the backend’s own error type MErr carried by Backend.

§Stability

This enum is #[non_exhaustive].

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

§task: &'static str

The name of the task on which the invalid explosion was invoked.

§dim: &'static str

The dimension name this explosion tried to resolve.

§

MissingTicketSummary

Missing ticket summary for a task.

Fields

§task: &'static str

The name of the task whose ticket summary is missing.

§

MissingResolution

Missing resolution for a dimension.

Fields

§dim: &'static str

The name of the dimension that is missing a resolution.

§deps: Vec<(&'static str, usize)>

The ancestor coordinates of this resolution.

§

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>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<MErr> Display for MetaStorageError<MErr>
where MErr: Display,

Source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<MErr> Error for MetaStorageError<MErr>
where MErr: Error, Self: Debug + Display,

Source§

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

👎Deprecated since 1.42.0:

use the Display impl or to_string()

1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<MemMetaError> for MetaStorageError<MemMetaError>

Source§

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>

Source§

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.

Source§

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.

Source§

fn from(err: MetaStorageError<PsqlMetaError>) -> Self

Converts to this type from the input type.
Source§

impl<T> From<PoisonError<T>> for MetaStorageError<MemMetaError>

Source§

fn from(_: PoisonError<T>) -> Self

Converts to this type from the input type.
Source§

impl From<PsqlMetaError> for MetaStorageError<PsqlMetaError>

Source§

fn from(err: PsqlMetaError) -> Self

Converts to this type from the input type.
Source§

impl<MErr> From<TryFromIntError> for MetaStorageError<MErr>

Source§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToCompactString for T
where T: Display,

Source§

impl<T> ToLine for T
where T: Display,

Source§

fn to_line(&self) -> Line<'_>

Converts the value to a Line.
Source§

impl<T> ToSpan for T
where T: Display,

Source§

fn to_span(&self) -> Span<'_>

Converts the value to a Span.
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T> ToText for T
where T: Display,

Source§

fn to_text(&self) -> Text<'_>

Converts the value to a Text.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more