pub trait EngineError:
StdError
+ Serialize
+ Send
+ Sync
+ 'static {
// Required method
fn error_code(&self) -> Cow<'static, str>;
// Provided method
fn io_error_kind(&self) -> Option<ErrorKind> { ... }
}Expand description
An error from the engine that runs a pipeline’s circuit, where the engine’s own error type
is unknown: inside the pipeline controller’s errors. It reports what a DetailedError
reports, and it serializes behind a pointer.
Required Methods§
Sourcefn error_code(&self) -> Cow<'static, str>
fn error_code(&self) -> Cow<'static, str>
Identifying name of the error, as DetailedError::error_code gives it.
Provided Methods§
Sourcefn io_error_kind(&self) -> Option<ErrorKind>
fn io_error_kind(&self) -> Option<ErrorKind>
The kind of the I/O error that caused this error, if an I/O error did.
Trait Implementations§
Source§impl<'erased> Serialize for dyn EngineError + 'erased
impl<'erased> Serialize for dyn EngineError + 'erased
Source§impl<'erased> Serialize for dyn EngineError + Send + 'erased
impl<'erased> Serialize for dyn EngineError + Send + 'erased
Source§impl<'erased> Serialize for dyn EngineError + Sync + 'erased
impl<'erased> Serialize for dyn EngineError + Sync + 'erased
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".