pub enum VmdkError {
Io(Error),
BadMagic,
UnsupportedVersion(u32),
CompressedNotSupported,
FileTooSmall,
GeometryOverflow {
field: &'static str,
},
FieldOutOfRange {
field: &'static str,
value: u64,
reason: &'static str,
},
MalformedDescriptor(&'static str),
UnsupportedDiskType(String),
}Expand description
Errors returned while opening or parsing a VMDK image.
Variants§
Io(Error)
BadMagic
UnsupportedVersion(u32)
CompressedNotSupported
FileTooSmall
GeometryOverflow
An arithmetic computation on a geometry field overflowed u64.
FieldOutOfRange
A geometry field held a value outside its valid range.
Fields
MalformedDescriptor(&'static str)
The text descriptor was structurally malformed.
UnsupportedDiskType(String)
Trait Implementations§
Source§impl Error for VmdkError
impl Error for VmdkError
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 VmdkError
impl !UnwindSafe for VmdkError
impl Freeze for VmdkError
impl Send for VmdkError
impl Sync for VmdkError
impl Unpin for VmdkError
impl UnsafeUnpin for VmdkError
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