rok-core 0.6.0

Core primitives for the rok ecosystem — errors, crypto, i18n, config, DI, and more
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use thiserror::Error;

#[derive(Debug, Error)]
pub enum HashError {
    #[error("hashing failed: {0}")]
    HashFailed(String),

    #[error("invalid hash format")]
    InvalidFormat,

    #[error("invalid parameters: {0}")]
    InvalidParams(String),
}