pub struct TaskRegistry {
pub handlers: Arc<HashMap<String, Arc<dyn Fn(Task) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send>> + Send + Sync>>>,
pub jobs: Vec<JobInfo>,
}Expand description
App-state registry for CLI and introspection.
Fields§
§handlers: Arc<HashMap<String, Arc<dyn Fn(Task) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send>> + Send + Sync>>>§jobs: Vec<JobInfo>Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for TaskRegistry
impl !UnwindSafe for TaskRegistry
impl Freeze for TaskRegistry
impl Send for TaskRegistry
impl Sync for TaskRegistry
impl Unpin for TaskRegistry
impl UnsafeUnpin for TaskRegistry
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