Change log passing

This commit is contained in:
Adrian Heine 2020-09-05 11:26:16 +02:00
parent 9200e83a0a
commit d7180e327a
5 changed files with 171 additions and 117 deletions

View file

@ -1,3 +1,4 @@
use crate::loggers::StoringLogger;
use crate::resources::Resource;
use crate::to_artifact::ToArtifact;
use std::error::Error;
@ -7,3 +8,5 @@ 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>>;
pub type InternalAddResult<R> =
Result<(StoringLogger, <R as ToArtifact>::Artifact, bool), (StoringLogger, Box<dyn Error>)>;