#[non_exhaustive]pub enum Error {
Show 19 variants
ReadDisk(StorageError),
WriteDisk(StorageError),
FlushDisk(StorageError),
FileInfo,
FileInfoAllocated,
AllocateZero,
AllocateOffset,
InsufficientResources,
FileId,
WriteFileLength,
WriteFileBlocks,
Initialization(String),
InvalidFormat(String),
CorruptFormat(String),
EmptyFile,
OverwriteEncrypted,
ReadEncrypted,
OpenSSL(ErrorStack, String),
Other(Error),
}
Expand description
VMGS errors.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ReadDisk(StorageError)
Error reading from disk.
WriteDisk(StorageError)
Error writing to disk.
FlushDisk(StorageError)
Error flushing the disk.
FileInfo
Invalid file id or file header.
FileInfoAllocated
No allocated bytes for file id being read.
AllocateZero
Cannot allocate 0 blocks.
AllocateOffset
Invalid data allocation offsets.
InsufficientResources
Insufficient resources.
FileId
Invalid file id.
WriteFileLength
Invalid data buffer length.
WriteFileBlocks
Trying to allocate too many blocks.
Initialization(String)
Fatal initialization failures
InvalidFormat(String)
Invalid VMGS file format.
CorruptFormat(String)
Corrupt VMGS file format.
EmptyFile
Empty VMGS file.
OverwriteEncrypted
Cannot overwrite encrypted file with plaintext data.
ReadEncrypted
Cannot read encrypted file - VMGS is locked.
OpenSSL(ErrorStack, String)
OpenSSL errors.
Other(Error)
Other errors - TODO: REMOVE THIS
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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()
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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