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.
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