pub enum NewDeviceError {
EmptyDeviceList,
DeviceNotCompatible {
sector_size: u32,
cur_sector_size: u32,
sector_count: u64,
cur_sector_count: u64,
},
InvalidChunkSize(u32, u32),
InvalidLogicSectorCount(u64, u64),
InvalidStripingDiskSize(u64, u64),
}
Variants§
EmptyDeviceList
DeviceNotCompatible
InvalidChunkSize(u32, u32)
InvalidLogicSectorCount(u64, u64)
InvalidStripingDiskSize(u64, u64)
Trait Implementations§
Source§impl Debug for NewDeviceError
impl Debug for NewDeviceError
Source§impl Display for NewDeviceError
impl Display for NewDeviceError
Source§impl Error for NewDeviceError
impl Error for NewDeviceError
1.30.0 · 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 NewDeviceError
impl RefUnwindSafe for NewDeviceError
impl Send for NewDeviceError
impl Sync for NewDeviceError
impl Unpin for NewDeviceError
impl UnwindSafe for NewDeviceError
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