pub struct Executioner;Expand description
Executioner that manes the execution of a sequence of a tasks.
Implementations§
Source§impl Executioner
impl Executioner
Sourcepub fn execute<T>(
tasks: &[T],
context: T::Context,
) -> Result<T::Context, T::Error>where
T: Task,
pub fn execute<T>(
tasks: &[T],
context: T::Context,
) -> Result<T::Context, T::Error>where
T: Task,
Executes the given sequence of tasks with the given initial context. The first task receives the initial context. Each subsequent task receives the input from the previous task. This function will return the resulting context of the last task.
Auto Trait Implementations§
impl Freeze for Executioner
impl RefUnwindSafe for Executioner
impl Send for Executioner
impl Sync for Executioner
impl Unpin for Executioner
impl UnwindSafe for Executioner
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