pub enum EngramError {
Show 32 variants
InvalidFormat(String),
InvalidMagic,
UnsupportedVersion(u16),
FileNotFound(String),
InvalidCompression(u8),
CompressionFailed(String),
DecompressionFailed(String),
CrcMismatch {
expected: u32,
actual: u32,
},
DatabaseNotFound(String),
ExtractionFailed(String),
SqliteError(Error),
InvalidManifest(String),
ManifestNotFound,
ManifestParseFailed(String),
PermissionDenied(String),
InvalidCapability(String),
SignatureVerificationFailed(String),
InvalidSignature,
SignatureNotFound,
InvalidPublicKey,
InvalidSecretKey,
EncryptionFailed,
DecryptionFailed,
MissingDecryptionKey,
InvalidEncryptionMode,
InvalidNonce,
Io(Error),
PathError(String),
JsonError(Error),
TomlError(String),
Internal(String),
Other(String),
}Expand description
Unified error type for all engram operations
Variants§
InvalidFormat(String)
InvalidMagic
UnsupportedVersion(u16)
FileNotFound(String)
InvalidCompression(u8)
CompressionFailed(String)
DecompressionFailed(String)
CrcMismatch
DatabaseNotFound(String)
ExtractionFailed(String)
SqliteError(Error)
InvalidManifest(String)
ManifestNotFound
ManifestParseFailed(String)
PermissionDenied(String)
InvalidCapability(String)
SignatureVerificationFailed(String)
InvalidSignature
SignatureNotFound
InvalidPublicKey
InvalidSecretKey
EncryptionFailed
DecryptionFailed
MissingDecryptionKey
InvalidEncryptionMode
InvalidNonce
Io(Error)
PathError(String)
JsonError(Error)
TomlError(String)
Internal(String)
Other(String)
Trait Implementations§
Source§impl Debug for EngramError
impl Debug for EngramError
Source§impl Display for EngramError
impl Display for EngramError
Source§impl Error for EngramError
impl Error for EngramError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<Error> for EngramError
impl From<Error> for EngramError
Source§impl From<Error> for EngramError
impl From<Error> for EngramError
Source§impl From<Error> for EngramError
impl From<Error> for EngramError
Source§impl From<Error> for EngramError
impl From<Error> for EngramError
Source§impl From<Error> for EngramError
impl From<Error> for EngramError
Source§impl From<Error> for EngramError
impl From<Error> for EngramError
Source§fn from(err: SignatureError) -> Self
fn from(err: SignatureError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for EngramError
impl !RefUnwindSafe for EngramError
impl Send for EngramError
impl Sync for EngramError
impl Unpin for EngramError
impl !UnwindSafe for EngramError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more