pub trait WeightedFuture: Sealed {
    type Future: Future;

    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§

The associated Future type.

Required Methods§

Turns self into its components.

Implementations on Foreign Types§

Implementors§