pub struct StepContext {
pub event_bus: Arc<EventBus>,
pub archives: Arc<ArchiveStore>,
pub cancel: CancellationToken,
}Expand description
Shared context threaded into every runner invocation.
Replaces the monolithic OrchestratorState that the old plugin
system passed as opaque host memory. All fields are cheaply
cloneable (Arc / CancellationToken).
Fields§
§event_bus: Arc<EventBus>§archives: Arc<ArchiveStore>§cancel: CancellationTokenTrait Implementations§
Source§impl Clone for StepContext
impl Clone for StepContext
Source§fn clone(&self) -> StepContext
fn clone(&self) -> StepContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for StepContext
impl !UnwindSafe for StepContext
impl Freeze for StepContext
impl Send for StepContext
impl Sync for StepContext
impl Unpin for StepContext
impl UnsafeUnpin for StepContext
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