pub enum VhdError {
Io(Error),
BadCookie,
UnsupportedVersion(u32),
DifferencingNotSupported,
UnknownDiskType(u32),
FileTooSmall,
ChecksumMismatch {
expected: u32,
actual: u32,
},
BatOutOfBounds,
BlockOutOfBounds,
InvalidBlockSize,
}Variants§
Io(Error)
BadCookie
UnsupportedVersion(u32)
DifferencingNotSupported
UnknownDiskType(u32)
FileTooSmall
ChecksumMismatch
BatOutOfBounds
BlockOutOfBounds
InvalidBlockSize
Trait Implementations§
Source§impl Error for VhdError
impl Error for VhdError
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 VhdError
impl !UnwindSafe for VhdError
impl Freeze for VhdError
impl Send for VhdError
impl Sync for VhdError
impl Unpin for VhdError
impl UnsafeUnpin for VhdError
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