1 2 3 4 5 6 7 8 9 10 11 12 13
use steel::*; #[derive(Debug, Error, Clone, Copy, PartialEq, Eq, IntoPrimitive)] #[repr(u32)] pub enum EntropyError { #[error("Incomplete digest")] IncompleteDigest = 0, #[error("Invalid seed")] InvalidSeed = 1, } error!(EntropyError);