You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
487 B
12 lines
487 B
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>)>;
|