pub struct TaskHandlerRegistry { /* private fields */ }Expand description
Registry of task handlers.
Implementations§
Source§impl TaskHandlerRegistry
impl TaskHandlerRegistry
Sourcepub fn register(&mut self, handler: Arc<dyn TaskHandler>)
pub fn register(&mut self, handler: Arc<dyn TaskHandler>)
Register a task handler.
Sourcepub fn task_types(&self) -> Vec<String>
pub fn task_types(&self) -> Vec<String>
Get all registered task types.
Trait Implementations§
Source§impl Clone for TaskHandlerRegistry
impl Clone for TaskHandlerRegistry
Source§fn clone(&self) -> TaskHandlerRegistry
fn clone(&self) -> TaskHandlerRegistry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TaskHandlerRegistry
impl !RefUnwindSafe for TaskHandlerRegistry
impl Send for TaskHandlerRegistry
impl Sync for TaskHandlerRegistry
impl Unpin for TaskHandlerRegistry
impl UnsafeUnpin for TaskHandlerRegistry
impl !UnwindSafe for TaskHandlerRegistry
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