1 2 3 4 5 6 7 8 9 10 11 12 13 14
use std::io; #[derive(Debug)] pub enum WalletError { Io(io::Error), UnsupportedVersion(u64), InvalidFormat(String), } impl From<io::Error> for WalletError { fn from(e: io::Error) -> Self { WalletError::Io(e) } }