pub enum VssError {
Io(Error),
StoreIndexOutOfRange {
index: usize,
count: usize,
},
StoreInfoUnavailable {
index: usize,
},
StoreOffsetOutOfBounds {
index: usize,
offset: u64,
volume_size: u64,
},
}Expand description
An error decoding a Volume Shadow Copy volume.
The reader never panics on malformed input: out-of-range reads yield safe defaults through the bounds-checked helpers, and only genuine I/O failures or caller misuse (an out-of-range store index) surface as an error.
Variants§
Io(Error)
An I/O error reading the underlying volume.
StoreIndexOutOfRange
A store index passed to crate::VssVolume::store_info is past the end
of the enumerated stores.
The store has no catalog type-0x03 pointer, so its store-information block cannot be located (e.g. a Windows 2003 R2 catalog).
StoreOffsetOutOfBounds
A store-header offset read from the catalog runs past the end of the volume — consistent with a corrupt or tampered catalog entry.
Trait Implementations§
Source§impl Error for VssError
impl Error for VssError
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 !RefUnwindSafe for VssError
impl !UnwindSafe for VssError
impl Freeze for VssError
impl Send for VssError
impl Sync for VssError
impl Unpin for VssError
impl UnsafeUnpin for VssError
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