mirror of
https://github.com/lexmount/moli.git
synced 2026-10-04 16:00:47 +00:00
17 lines
346 B
Rust
17 lines
346 B
Rust
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
|
|
pub enum WebCryptoError {
|
|
Data,
|
|
Operation,
|
|
Syntax,
|
|
}
|
|
|
|
impl WebCryptoError {
|
|
pub fn message(self) -> &'static str {
|
|
match self {
|
|
Self::Data => "DataError",
|
|
Self::Operation => "OperationError",
|
|
Self::Syntax => "SyntaxError",
|
|
}
|
|
}
|
|
}
|