pub struct Dependents<J>(/* private fields */);Expand description
A reference to the jobs dependent on a queued job.
Implementations§
Source§impl<J> Dependents<J>
impl<J> Dependents<J>
Sourcepub fn new(dependents: Vec<Edge<J>>) -> Arc<Self>
pub fn new(dependents: Vec<Edge<J>>) -> Arc<Self>
Construct a new dependent list from its inner vector
Sourcepub fn push<H: SchedulerCore<J>>(&self, handle: &H, dependent: Edge<J>)
pub fn push<H: SchedulerCore<J>>(&self, handle: &H, dependent: Edge<J>)
Push a new dependent job into this dependents list.
If the job associated with this list has already run, the job will be enqueued immediately.
Trait Implementations§
Auto Trait Implementations§
impl<J> !Freeze for Dependents<J>
impl<J> !RefUnwindSafe for Dependents<J>
impl<J> Send for Dependents<J>where
J: Send,
impl<J> Sync for Dependents<J>where
J: Send,
impl<J> Unpin for Dependents<J>
impl<J> UnsafeUnpin for Dependents<J>
impl<J> !UnwindSafe for Dependents<J>
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