Struct hotshot_task::dependency::AndDependency
source · pub struct AndDependency<T> {
deps: Vec<BoxFuture<'static, Option<T>>>,
}
Expand description
Defines a dependency that completes when all of its deps complete
Fields§
§deps: Vec<BoxFuture<'static, Option<T>>>
Dependencies being combined
Implementations§
source§impl<T: Clone + Send + Sync + 'static> AndDependency<T>
impl<T: Clone + Send + Sync + 'static> AndDependency<T>
sourcepub fn from_deps(deps: Vec<impl Dependency<T> + Send + 'static>) -> Self
pub fn from_deps(deps: Vec<impl Dependency<T> + Send + 'static>) -> Self
Create from a vec of deps
sourcepub fn add_dep(&mut self, dep: impl Dependency<T> + Send + 'static)
pub fn add_dep(&mut self, dep: impl Dependency<T> + Send + 'static)
Add another dependency
sourcepub fn add_deps(&mut self, deps: AndDependency<T>)
pub fn add_deps(&mut self, deps: AndDependency<T>)
Add multiple dependencies
Trait Implementations§
source§impl<T: Clone + Send + Sync> Dependency<Vec<T>> for AndDependency<T>
impl<T: Clone + Send + Sync> Dependency<Vec<T>> for AndDependency<T>
Auto Trait Implementations§
impl<T> Freeze for AndDependency<T>
impl<T> !RefUnwindSafe for AndDependency<T>
impl<T> Send for AndDependency<T>
impl<T> !Sync for AndDependency<T>
impl<T> Unpin for AndDependency<T>
impl<T> !UnwindSafe for AndDependency<T>
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