A library for writing host-specific, single-binary configuration management and deployment tools
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

  1. use crate::loggers::StoringLogger;
  2. use crate::resources::Resource;
  3. use crate::to_artifact::ToArtifact;
  4. use std::error::Error;
  5. use std::fmt::Debug;
  6. pub trait AddableResource: 'static + Resource + Debug {}
  7. impl<R> AddableResource for R where R: 'static + Resource + Debug {}
  8. pub type AddResult<R> = Result<(<R as ToArtifact>::Artifact, bool), Box<dyn Error>>;
  9. pub type InternalAddResult<R> =
  10. Result<(StoringLogger, <R as ToArtifact>::Artifact, bool), (StoringLogger, Box<dyn Error>)>;