Trait hotshot_task::dependency::Dependency
source · pub trait Dependency<T> {
// Required method
fn completed(self) -> impl Future<Output = Option<T>> + Send;
// Provided methods
fn or<D: Dependency<T> + Send + 'static>(self, dep: D) -> OrDependency<T>
where T: Send + Sync + Clone + 'static,
Self: Sized + Send + 'static { ... }
fn and<D: Dependency<T> + Send + 'static>(self, dep: D) -> AndDependency<T>
where T: Send + Sync + Clone + 'static,
Self: Sized + Send + 'static { ... }
}
Expand description
Type which describes the idea of waiting for a dependency to complete
Required Methods§
Provided Methods§
sourcefn or<D: Dependency<T> + Send + 'static>(self, dep: D) -> OrDependency<T>
fn or<D: Dependency<T> + Send + 'static>(self, dep: D) -> OrDependency<T>
Create an or dependency from this dependency and another
sourcefn and<D: Dependency<T> + Send + 'static>(self, dep: D) -> AndDependency<T>
fn and<D: Dependency<T> + Send + 'static>(self, dep: D) -> AndDependency<T>
Create an and dependency from this dependency and another
Object Safety§
This trait is not object safe.