taktora-executor 0.1.0

Execution framework for iceoryx2-based Rust applications.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Return type for [`crate::ExecutableItem::execute`].

use crate::error::ItemError;

/// What the executor should do after an item runs successfully.
#[derive(Debug, Clone, Copy, Eq, PartialEq)]
#[non_exhaustive]
pub enum ControlFlow {
    /// Continue scheduling normally.
    Continue,
    /// Abort the enclosing chain or graph (no further items dispatched).
    StopChain,
}

/// Return type of [`crate::ExecutableItem::execute`].
pub type ExecuteResult = Result<ControlFlow, ItemError>;