Trait future_queue::traits::GroupedWeightedFuture
source · pub trait GroupedWeightedFuture: Sealed {
type Future: Future;
type Q;
// Required methods
fn weight(&self) -> usize;
fn into_components(self) -> (usize, Option<Self::Q>, Self::Future);
}
Expand description
A trait for types which can be converted into a Future
, an optional group, and a weight.
Provided in case it’s necessary. This trait is only implemented for (usize, Option<Q>, impl Future)
.