Skip to main content

EngineError

Trait EngineError 

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

Source

fn error_code(&self) -> Cow<'static, str>

Identifying name of the error, as DetailedError::error_code gives it.

Provided Methods§

Source

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

Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<'erased> Serialize for dyn EngineError + Send + 'erased

Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<'erased> Serialize for dyn EngineError + Sync + 'erased

Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<'erased> Serialize for dyn EngineError + Send + Sync + 'erased

Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§