1 2 3 4 5 6 7 8 9 10 11
use futures::Future; pub trait Importer { type Path: Clone; type Options: Clone; type Output; type Error; type Future: 'static + Future<Item = Self::Output, Error = Self::Error> + Send; fn import(&self, Self::Path, Self::Options) -> Self::Future; }