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
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.