Trait future_queue::traits::WeightedFuture
source · pub trait WeightedFuture: Sealed {
type Future: Future;
// Required methods
fn weight(&self) -> usize;
fn into_components(self) -> (usize, Self::Future);
}
Expand description
A trait for types which can be converted into a Future
and a weight.
Provided in case it’s necessary. This trait is only implemented for (usize, impl Future)
.
Required Associated Types§
Required Methods§
sourcefn into_components(self) -> (usize, Self::Future)
fn into_components(self) -> (usize, Self::Future)
Turns self into its components.