Struct hotshot_task::dependency_task::DependencyTask
source · pub struct DependencyTask<D: Dependency<H::Output> + Send, H: HandleDepOutput + Send> {
pub(crate) dep: D,
pub(crate) handle: H,
}
Expand description
A task that runs until it’s dependency completes and it handles the result
Fields§
§dep: D
Dependency this tasks waits for
handle: H
Handles the results returned from self.dep.completed().await
Implementations§
source§impl<D: Dependency<H::Output> + Send, H: HandleDepOutput + Send> DependencyTask<D, H>
impl<D: Dependency<H::Output> + Send, H: HandleDepOutput + Send> DependencyTask<D, H>
source§impl<D: Dependency<H::Output> + Send + 'static, H: HandleDepOutput> DependencyTask<D, H>
impl<D: Dependency<H::Output> + Send + 'static, H: HandleDepOutput> DependencyTask<D, H>
Auto Trait Implementations§
impl<D, H> Freeze for DependencyTask<D, H>
impl<D, H> RefUnwindSafe for DependencyTask<D, H>where
D: RefUnwindSafe,
H: RefUnwindSafe,
impl<D, H> Send for DependencyTask<D, H>
impl<D, H> Sync for DependencyTask<D, H>where
D: Sync,
impl<D, H> Unpin for DependencyTask<D, H>
impl<D, H> UnwindSafe for DependencyTask<D, H>where
D: UnwindSafe,
H: 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