pub struct RunCancellation {
pub run: Run,
pub cancelled_descendants: Vec<Uuid>,
}Expand description
Outcome of Engine::cancel_run.
§Examples
use std::sync::Arc;
use ironflow_engine::engine::Engine;
use ironflow_engine::error::EngineError;
use uuid::Uuid;
let cancellation = engine.cancel_run(run_id).await?;
println!(
"run {} cancelled with {} sub-runs",
cancellation.run.id,
cancellation.cancelled_descendants.len()
);Fields§
§run: RunThe cancelled run, as stored after the cancellation.
cancelled_descendants: Vec<Uuid>The sub-workflow runs below it that this call cancelled, oldest first.
Trait Implementations§
Source§impl Clone for RunCancellation
impl Clone for RunCancellation
Auto Trait Implementations§
impl Freeze for RunCancellation
impl RefUnwindSafe for RunCancellation
impl Send for RunCancellation
impl Sync for RunCancellation
impl Unpin for RunCancellation
impl UnsafeUnpin for RunCancellation
impl UnwindSafe for RunCancellation
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