#[non_exhaustive]pub enum OpenError {
ReadWriteUnsupported,
OpenDescriptor {
path: PathBuf,
source: Error,
},
ReadDescriptorMetadata {
path: PathBuf,
source: Error,
},
DescriptorNotRegularFile(PathBuf),
DescriptorTooLarge,
ReadDescriptor {
path: PathBuf,
source: Error,
},
Parse(ParseError),
OpenExtent {
path: PathBuf,
source: Error,
},
ReadExtentMetadata {
index: usize,
source: Error,
},
ExtentNotRegularFile(usize),
InvalidExtentMap(String),
}Expand description
An error opening a VMDK or validating its descriptor, sources, and extent map.
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.
ReadWriteUnsupported
The requested VMDK does not support writable access.
OpenDescriptor
The descriptor file could not be opened.
ReadDescriptorMetadata
Descriptor metadata could not be read.
DescriptorNotRegularFile(PathBuf)
The descriptor is not a regular file.
DescriptorTooLarge
The descriptor is larger than the accepted limit.
ReadDescriptor
The descriptor file could not be read.
Parse(ParseError)
The descriptor content is invalid or unsupported.
OpenExtent
A referenced extent file could not be opened.
ReadExtentMetadata
Extent metadata could not be read.
ExtentNotRegularFile(usize)
A referenced extent is not a regular file.
InvalidExtentMap(String)
The supplied extent map is invalid.
Trait Implementations§
Source§impl Error for OpenError
impl Error for OpenError
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<OpenError> for ResolveFlatVmdkError
impl From<OpenError> for ResolveFlatVmdkError
Source§impl From<ParseError> for OpenError
impl From<ParseError> for OpenError
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for OpenError
impl !RefUnwindSafe for OpenError
impl Send for OpenError
impl Sync for OpenError
impl Unpin for OpenError
impl UnsafeUnpin for OpenError
impl !UnwindSafe for OpenError
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