pub struct ActionRegistry { /* private fields */ }Expand description
Registry mapping action types to their handlers.
Implementations§
Source§impl ActionRegistry
impl ActionRegistry
Sourcepub fn get(&self, action: &ActionType) -> Option<&Arc<dyn Action>>
pub fn get(&self, action: &ActionType) -> Option<&Arc<dyn Action>>
Look up the handler for an action type.
Sourcepub fn action_types(&self) -> impl Iterator<Item = &ActionType>
pub fn action_types(&self) -> impl Iterator<Item = &ActionType>
Iterate over registered action types.
Sourcepub fn unsupported_actions(&self, steps: &[Step]) -> Vec<ActionType>
pub fn unsupported_actions(&self, steps: &[Step]) -> Vec<ActionType>
Return action types used in the execution plan that have no registered handler. Results are deduplicated and returned in first-occurrence order.
Sourcepub fn unsupported_step_params(
&self,
steps: &[Step],
) -> Vec<StepUnsupportedParam>
pub fn unsupported_step_params( &self, steps: &[Step], ) -> Vec<StepUnsupportedParam>
Ask each step’s handler what this build cannot carry out.
Handlers see the literal part of the block with defaults applied, the
same order the executor uses. A step whose action has no handler in
this build is skipped: unsupported_actions
already reports it, and there is nobody to ask. A step whose whole
with: block is an expression is skipped too, since none of it is
known yet.
Trait Implementations§
Source§impl Default for ActionRegistry
impl Default for ActionRegistry
Source§fn default() -> ActionRegistry
fn default() -> ActionRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for ActionRegistry
impl !UnwindSafe for ActionRegistry
impl Freeze for ActionRegistry
impl Send for ActionRegistry
impl Sync for ActionRegistry
impl Unpin for ActionRegistry
impl UnsafeUnpin for ActionRegistry
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