pub(crate) struct ArcJob<BODY>{
    job: BODY,
}Expand description
Represents a job stored in an Arc – like HeapJob, but may
be turned into multiple JobRefs and called multiple times.
Fields§
§job: BODYImplementations§
Source§impl<BODY> ArcJob<BODY>
 
impl<BODY> ArcJob<BODY>
pub(crate) fn new(job: BODY) -> Arc<Self>
Sourcepub(crate) unsafe fn as_job_ref(this: &Arc<Self>) -> JobRef
 
pub(crate) unsafe fn as_job_ref(this: &Arc<Self>) -> JobRef
Creates a JobRef from this job – note that this hides all
lifetimes, so it is up to you to ensure that this JobRef
doesn’t outlive any data that it closes over.
Sourcepub(crate) fn as_static_job_ref(this: &Arc<Self>) -> JobRefwhere
    BODY: 'static,
 
pub(crate) fn as_static_job_ref(this: &Arc<Self>) -> JobRefwhere
    BODY: 'static,
Creates a static JobRef from this job.
Trait Implementations§
Auto Trait Implementations§
impl<BODY> Freeze for ArcJob<BODY>where
    BODY: Freeze,
impl<BODY> RefUnwindSafe for ArcJob<BODY>where
    BODY: RefUnwindSafe,
impl<BODY> Send for ArcJob<BODY>
impl<BODY> Sync for ArcJob<BODY>
impl<BODY> Unpin for ArcJob<BODY>where
    BODY: Unpin,
impl<BODY> UnwindSafe for ArcJob<BODY>where
    BODY: UnwindSafe,
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