Struct prefect::JobRegistry
source · pub struct JobRegistry<CONTEXT>where
CONTEXT: Send + Sync + Debug + Clone + 'static,{ /* private fields */ }Expand description
A list of jobs that can be run by a worker.
Implementations
sourceimpl<CONTEXT> JobRegistry<CONTEXT>where
CONTEXT: Send + Sync + Debug + Clone + 'static,
impl<CONTEXT> JobRegistry<CONTEXT>where
CONTEXT: Send + Sync + Debug + Clone + 'static,
sourcepub fn new<JOBLIST>(jobs: JOBLIST) -> JobRegistry<CONTEXT>where
JOBLIST: IntoIterator,
JOBLIST::Item: Borrow<JobRunner<CONTEXT>>,
pub fn new<JOBLIST>(jobs: JOBLIST) -> JobRegistry<CONTEXT>where
JOBLIST: IntoIterator,
JOBLIST::Item: Borrow<JobRunner<CONTEXT>>,
Create a new job registry from a list of JobRunners.
Auto Trait Implementations
impl<CONTEXT> !RefUnwindSafe for JobRegistry<CONTEXT>
impl<CONTEXT> Send for JobRegistry<CONTEXT>
impl<CONTEXT> Sync for JobRegistry<CONTEXT>
impl<CONTEXT> Unpin for JobRegistry<CONTEXT>
impl<CONTEXT> !UnwindSafe for JobRegistry<CONTEXT>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more