Experiment with futures
This commit is contained in:
parent
907fbf95db
commit
2d3e3688fa
44 changed files with 2081 additions and 1242 deletions
9
src/setup/util.rs
Normal file
9
src/setup/util.rs
Normal 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>>;
|
||||
Loading…
Add table
Add a link
Reference in a new issue