pub enum RunError {
DocumentOption(OptionError),
MissingExternal {
table: CapName,
docs: String,
},
UnknownExternal {
table: CapName,
roster: Vec<CapName>,
},
NotExternal {
table: CapName,
},
ExternalType {
table: CapName,
declared: &'static str,
installed: &'static str,
},
StampMismatch {
table: CapName,
installed: Stamp,
expected: Stamp,
},
Worker {
detail: String,
},
Store(StoreError),
}Expand description
The reason why a run could not be constructed, or could not go on.
Apart from DocumentOption, which reports an
option value set on the document where it may not be set, none of these
errors concerns the document’s content: a problem with the content is
reported as a diagnostic. A RunError means that the run was asked for
something it cannot do. Run::new returns every variant except
Worker, which Run::step and Run::execute
return together with Store.
Variants§
DocumentOption(OptionError)
The document sets a value for an option type that is not bound at document level (option types and values).
MissingExternal
The plan needs an external table for which no value is installed.
Fields
docs: StringThe table’s description
(TableDef::docs),
which says what belongs in it.
UnknownExternal
A value is installed for a table that the registry does not declare.
Fields
NotExternal
A value is installed for a table that is not declared as external
(FeatureBuilder::external_table);
only an external table can receive an installed value.
ExternalType
An installed value is not of the value type that the table is declared with.
Fields
StampMismatch
An installed value was produced under another registry, other rewrite
stages or other option values than this run uses; see Stamp.
Fields
Worker
No worker thread could be created to run the work on.
Store(StoreError)
An invariant of the store failed, for example a table written twice. This reports a defect in the runner or in a stage, never a problem with the document.
Trait Implementations§
Source§impl Error for RunError
impl Error for RunError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<StoreError> for RunError
impl From<StoreError> for RunError
Source§fn from(error: StoreError) -> RunError
fn from(error: StoreError) -> RunError
Auto Trait Implementations§
impl Forget for RunError
impl Freeze for RunErrorwhere
*const ArcInner<str> is !null: Freeze,
PhantomData<ArcInner<str>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
PhantomData<CapName>: Freeze,
&'static str: Freeze,
PhantomData<StageName>: Freeze,
impl Move for RunError
impl RefUnwindSafe for RunError
impl Send for RunError
impl Sync for RunError
impl Unpin for RunError
impl UnsafeUnpin for RunErrorwhere
*const ArcInner<str> is !null: UnsafeUnpin,
PhantomData<ArcInner<str>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<CapName>: UnsafeUnpin,
&'static str: UnsafeUnpin,
PhantomData<StageName>: UnsafeUnpin,
impl UnwindSafe for RunError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> ⓘ
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> ⓘ
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