pub enum OpenLvError<E> {
Pv(E),
NoSegment,
Unsupported(&'static str),
SeekOverflow,
}Expand description
Errors raised by OpenLV’s Read + Seek implementations.
Implements embedded_io::Error so the LamBoot adapter can flatten
everything to a kind via .kind() cleanly.
Variants§
Pv(E)
Underlying PV-reader error.
NoSegment
LV-level position is not covered by any segment.
Unsupported(&'static str)
Segment type or layout we don’t support (non-linear, multi-stripe, or data on a different PV than the one we opened).
SeekOverflow
Arithmetic overflow / underflow in seek offset computation.
Trait Implementations§
Source§impl<E: Debug> Debug for OpenLvError<E>
impl<E: Debug> Debug for OpenLvError<E>
Auto Trait Implementations§
impl<E> Freeze for OpenLvError<E>where
E: Freeze,
impl<E> RefUnwindSafe for OpenLvError<E>where
E: RefUnwindSafe,
impl<E> Send for OpenLvError<E>where
E: Send,
impl<E> Sync for OpenLvError<E>where
E: Sync,
impl<E> Unpin for OpenLvError<E>where
E: Unpin,
impl<E> UnsafeUnpin for OpenLvError<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for OpenLvError<E>where
E: UnwindSafe,
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