hydra 0.1.40

A framework for writing fault tolerant, highly scalable applications with the Rust programming language.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
/// Occurs when an argument to a function was incorrect or not valid at the given time.
#[derive(Debug)]
pub struct ArgumentError(pub String);

impl<T> From<T> for ArgumentError
where
    T: Into<String>,
{
    fn from(value: T) -> Self {
        Self(value.into())
    }
}