1 2 3 4 5 6 7 8 9 10 11
use snafu::Snafu; #[derive(Debug, Snafu)] #[snafu(visibility = "pub(crate)")] pub enum Error { DecodeError, EncodeWriteError, EncodeError, } pub type Result<T, E = Error> = core::result::Result<T, E>;
1 2 3 4 5 6 7 8 9 10 11
use snafu::Snafu; #[derive(Debug, Snafu)] #[snafu(visibility = "pub(crate)")] pub enum Error { DecodeError, EncodeWriteError, EncodeError, } pub type Result<T, E = Error> = core::result::Result<T, E>;