12 lines
487 B
Rust
12 lines
487 B
Rust
use crate::loggers::StoringLogger;
|
|
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>>;
|
|
pub type InternalAddResult<R> =
|
|
Result<(StoringLogger, <R as ToArtifact>::Artifact, bool), (StoringLogger, Box<dyn Error>)>;
|