#[non_exhaustive]pub enum ExecutorError {
Iceoryx2(String),
InvalidGraph(String),
DeclareTriggers(String),
Item {
task_id: TaskId,
source: ItemError,
},
AlreadyRunning,
RunnerJoin,
Builder(String),
}Expand description
Top-level error type for the executor.
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.
Iceoryx2(String)
An iceoryx2 operation failed. The original error is rendered with
{} because iceoryx2’s error types do not collapse into a single
From source.
InvalidGraph(String)
Graph validation failed at build() time.
DeclareTriggers(String)
An item’s declare_triggers call returned an error or the executor
rejected it (e.g. a duplicate subscriber attachment).
Item
An item returned Err(...) or panicked. The original error is wrapped.
Fields
AlreadyRunning
Executor::run was called while the executor was already running.
RunnerJoin
The runner thread panicked or could not be joined.
Builder(String)
Builder API used incorrectly (e.g. missing required field).
Implementations§
Trait Implementations§
Source§impl Debug for ExecutorError
impl Debug for ExecutorError
Source§impl Display for ExecutorError
impl Display for ExecutorError
Source§impl Error for ExecutorError
impl Error for ExecutorError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
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
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for ExecutorError
impl !RefUnwindSafe for ExecutorError
impl Send for ExecutorError
impl Sync for ExecutorError
impl Unpin for ExecutorError
impl UnsafeUnpin for ExecutorError
impl !UnwindSafe for ExecutorError
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