Struct rayon_core::job::ArcJob
source · pub(crate) struct ArcJob<BODY>{
job: BODY,
}
Expand description
Represents a job stored in an Arc
– like HeapJob
, but may
be turned into multiple JobRef
s and called multiple times.
Fields§
§job: BODY
Implementations§
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