pub enum EngineError {
NotRunnable {
command: EngineCommand,
error: Error,
},
Failed(Failure),
Cancelled {
command: EngineCommand,
},
TimedOut {
command: EngineCommand,
after: Duration,
},
}Expand description
Why a command did not do what was asked.
The variants are what the application acts on; the words shown to the person live in the language files.
Variants§
NotRunnable
The binary could not be started at all: it went missing, or it is not runnable.
Failed(Failure)
The engine ran and refused.
Cancelled
The person cancelled it, and it was stopped.
Fields
§
command: EngineCommandWhat was stopped.
TimedOut
The engine did not answer within the command’s deadline, and the command was stopped. An engine that hangs on a question is almost always waiting on a lock of its own, which nothing QCode does can free.
Trait Implementations§
Source§impl Debug for EngineError
impl Debug for EngineError
Source§impl From<EngineError> for BackupError
impl From<EngineError> for BackupError
Source§fn from(error: EngineError) -> Self
fn from(error: EngineError) -> Self
Converts to this type from the input type.
Source§impl From<EngineError> for RefreshError
impl From<EngineError> for RefreshError
Source§fn from(error: EngineError) -> Self
fn from(error: EngineError) -> Self
Converts to this type from the input type.
Source§impl From<EngineError> for Problem
impl From<EngineError> for Problem
Source§fn from(error: EngineError) -> Self
fn from(error: EngineError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for EngineError
impl !UnwindSafe for EngineError
impl Freeze for EngineError
impl Send for EngineError
impl Sync for EngineError
impl Unpin for EngineError
impl UnsafeUnpin for EngineError
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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