feat: add container hashmap
This commit is contained in:
commit
bb1784f259
12 changed files with 1511 additions and 0 deletions
15
src/error.rs
Normal file
15
src/error.rs
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
use thiserror::Error;
|
||||
|
||||
pub type Result<T> = std::result::Result<T, self::Error>;
|
||||
|
||||
#[derive(Error, Debug)]
|
||||
pub enum Error {
|
||||
#[error("Unhandled error: {0}")]
|
||||
Static(&'static str),
|
||||
|
||||
#[error("Unhandled error: {0}")]
|
||||
Generic(String),
|
||||
|
||||
#[error(transparent)]
|
||||
Docker(#[from] bollard::errors::Error),
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue