pub enum InvalidLayer {
AttachFailed(Error),
ReadCacheNotSupported,
InvalidSectorSize(u32),
MismatchedSectorSize {
expected: u32,
found: u32,
},
UselessWriteThrough,
ReadOnly,
}
Expand description
An error returned when creating a DiskLayer
.
Variants§
AttachFailed(Error)
Failed to attach the layer
ReadCacheNotSupported
Read caching was requested but is not supported.
InvalidSectorSize(u32)
The sector size is invalid.
MismatchedSectorSize
The sector size of the layers do not match.
UselessWriteThrough
A write-through layer is preceeded by a layer that is not write-through, or the last layer is write-through.
ReadOnly
Writing to the layered disk would require this layer to be writable.
Trait Implementations§
Source§impl Debug for InvalidLayer
impl Debug for InvalidLayer
Source§impl Display for InvalidLayer
impl Display for InvalidLayer
Source§impl Error for InvalidLayer
impl Error for InvalidLayer
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 InvalidLayer
impl RefUnwindSafe for InvalidLayer
impl Send for InvalidLayer
impl Sync for InvalidLayer
impl Unpin for InvalidLayer
impl UnwindSafe for InvalidLayer
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