Struct steno::ActionRegistry
source · pub struct ActionRegistry<UserType: SagaType> { /* private fields */ }
Expand description
A registry of saga actions that can be used across multiple sagas.
Actions are identified by their ActionName
.
Implementations§
source§impl<UserType: SagaType> ActionRegistry<UserType>
impl<UserType: SagaType> ActionRegistry<UserType>
pub fn new() -> ActionRegistry<UserType>
pub fn register(&mut self, action: Arc<dyn Action<UserType>>)
pub fn get( &self, name: &ActionName ) -> Result<Arc<dyn Action<UserType>>, ActionRegistryError>
Trait Implementations§
Auto Trait Implementations§
impl<UserType> !RefUnwindSafe for ActionRegistry<UserType>
impl<UserType> Send for ActionRegistry<UserType>
impl<UserType> Sync for ActionRegistry<UserType>
impl<UserType> Unpin for ActionRegistry<UserType>
impl<UserType> !UnwindSafe for ActionRegistry<UserType>
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