1 2 3 4 5 6 7 8 9
use std::future::Future; pub trait Chainer<T> { type Chained: Clone + Send + Sync; type Error; fn chain(&self, value: T) -> impl Future<Output = Result<Self::Chained, Self::Error>> + Send; }