elko/utils/
result.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//! Zinkup result

/// Zinkc errors
#[derive(Debug, thiserror::Error)]
pub enum Error {
    /// Anyhow error
    #[error(transparent)]
    Anyhow(#[from] anyhow::Error),
    /// Cargo metadata error
    #[error(transparent)]
    CargoMetadata(#[from] cargo_metadata::Error),
    /// Cargo package error
    #[error(transparent)]
    Etc(#[from] etc::Error),
    /// IO error
    #[error(transparent)]
    Io(#[from] std::io::Error),
}

/// Zinkc result
pub type Result<T> = std::result::Result<T, Error>;