pub struct ActionRegistry { /* private fields */ }Implementations§
Source§impl ActionRegistry
impl ActionRegistry
pub fn new() -> Self
pub fn validate_manifest( manifest: &ActionPrimitiveManifest, ) -> Result<(), ActionValidationError>
pub fn register( &mut self, primitive: Box<dyn ActionPrimitive>, ) -> Result<(), ActionValidationError>
pub fn get(&self, id: &str) -> Option<&dyn ActionPrimitive>
pub fn keys(&self) -> Vec<(String, String)>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ActionRegistry
impl !Send for ActionRegistry
impl !Sync for ActionRegistry
impl !UnwindSafe for ActionRegistry
impl Freeze 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