pub struct NamedJob { /* private fields */ }
Expand description
Type for a named job. Functions annotated with #[job]
are
transformed into static variables whose type is &'static NamedJob
.
Implementations§
source§impl NamedJob
impl NamedJob
sourcepub fn builder(&self) -> JobBuilder<'static>
pub fn builder(&self) -> JobBuilder<'static>
Initialize a job builder with the name and defaults of this job.
sourcepub fn builder_with_id(&self, id: Uuid) -> JobBuilder<'static>
pub fn builder_with_id(&self, id: Uuid) -> JobBuilder<'static>
Initialize a job builder with the name and defaults of this job, using the provided job ID.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for NamedJob
impl Send for NamedJob
impl Sync for NamedJob
impl Unpin for NamedJob
impl UnwindSafe for NamedJob
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