pub enum NewGetVmgsDiskError {
Io(VmgsIoError),
InvalidSectorSize,
InvalidPhysicalSectorSize,
InvalidSectorCount,
IncompletePhysicalSector,
InvalidMaxTransferSize,
}
Expand description
An error that can occur when creating a new GetVmgsDisk
.
Variants§
Io(VmgsIoError)
An IO error occurred while fetching the device info.
InvalidSectorSize
The sector size is not a power of two.
InvalidPhysicalSectorSize
The physical sector size is not a power of two or is smaller than the sector size.
InvalidSectorCount
The sector count is too large.
IncompletePhysicalSector
The disk ends with a partial physical sector.
InvalidMaxTransferSize
The maximum transfer size is smaller than the physical sector size.
Trait Implementations§
Source§impl Debug for NewGetVmgsDiskError
impl Debug for NewGetVmgsDiskError
Source§impl Display for NewGetVmgsDiskError
impl Display for NewGetVmgsDiskError
Source§impl Error for NewGetVmgsDiskError
impl Error for NewGetVmgsDiskError
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 NewGetVmgsDiskError
impl RefUnwindSafe for NewGetVmgsDiskError
impl Send for NewGetVmgsDiskError
impl Sync for NewGetVmgsDiskError
impl Unpin for NewGetVmgsDiskError
impl UnwindSafe for NewGetVmgsDiskError
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