pub struct StepRunnerRegistry { /* private fields */ }Expand description
Registry of step runners, auditable by kind and capability.
Starts empty; call register_builtin_runners
to populate with the five built-in kinds.
Implementations§
Source§impl StepRunnerRegistry
impl StepRunnerRegistry
pub fn new() -> Self
Sourcepub fn register(&mut self, runner: Box<dyn StepRunner>)
pub fn register(&mut self, runner: Box<dyn StepRunner>)
Register a custom step runner.
Sourcepub fn get(&self, kind: &str) -> Option<&dyn StepRunner>
pub fn get(&self, kind: &str) -> Option<&dyn StepRunner>
Look up a runner by kind string. Returns None if no match.
Sourcepub fn list(&self) -> Vec<(&str, Vec<RunnerCapability>)>
pub fn list(&self) -> Vec<(&str, Vec<RunnerCapability>)>
Return all registered (kind, capabilities) pairs for auditing.
Sourcepub fn register_builtin_runners(&mut self)
pub fn register_builtin_runners(&mut self)
Populate the registry with the five built-in step runners.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StepRunnerRegistry
impl !RefUnwindSafe for StepRunnerRegistry
impl Send for StepRunnerRegistry
impl Sync for StepRunnerRegistry
impl Unpin for StepRunnerRegistry
impl UnsafeUnpin for StepRunnerRegistry
impl !UnwindSafe for StepRunnerRegistry
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