pub struct WorkflowRegistry { /* private fields */ }Expand description
Immutable workflow-definition registry used by workers.
Implementations§
Source§impl WorkflowRegistry
impl WorkflowRegistry
Sourcepub fn register(
&mut self,
definition: WorkflowDefinition,
) -> Result<(), WorkflowWorkerError>
pub fn register( &mut self, definition: WorkflowDefinition, ) -> Result<(), WorkflowWorkerError>
Sourcepub fn get(&self, task: &WorkflowTask) -> Option<&Arc<WorkflowDefinition>>
pub fn get(&self, task: &WorkflowTask) -> Option<&Arc<WorkflowDefinition>>
Finds one exact workflow name and version.
Trait Implementations§
Source§impl Clone for WorkflowRegistry
impl Clone for WorkflowRegistry
Source§fn clone(&self) -> WorkflowRegistry
fn clone(&self) -> WorkflowRegistry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WorkflowRegistry
impl Debug for WorkflowRegistry
Source§impl Default for WorkflowRegistry
impl Default for WorkflowRegistry
Source§fn default() -> WorkflowRegistry
fn default() -> WorkflowRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for WorkflowRegistry
impl !UnwindSafe for WorkflowRegistry
impl Freeze for WorkflowRegistry
impl Send for WorkflowRegistry
impl Sync for WorkflowRegistry
impl Unpin for WorkflowRegistry
impl UnsafeUnpin for WorkflowRegistry
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