Experiment with futures

This commit is contained in:
Adrian Heine 2020-08-16 11:08:22 +02:00
parent 907fbf95db
commit 2d3e3688fa
44 changed files with 2081 additions and 1242 deletions

9
src/setup/util.rs Normal file
View file

@ -0,0 +1,9 @@
use crate::resources::Resource;
use crate::to_artifact::ToArtifact;
use std::error::Error;
use std::fmt::Debug;
pub trait AddableResource: 'static + Resource + Debug {}
impl<R> AddableResource for R where R: 'static + Resource + Debug {}
pub type AddResult<R> = Result<(<R as ToArtifact>::Artifact, bool), Box<dyn Error>>;