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