pub struct OpenLV<'a, T> { /* private fields */ }Expand description
An open, byte-addressable view of a Logical Volume.
Implements embedded_io::Read + Seek. Reads map LV offsets to PV
offsets via the segment table; only linear segments on the current PV
are supported (anything else errors with OpenLvError::Unsupported).
Trait Implementations§
Source§impl<T: Read + Seek> Read for OpenLV<'_, T>
impl<T: Read + Seek> Read for OpenLV<'_, T>
Source§fn read(&mut self, buf: &mut [u8]) -> Result<usize, Self::Error>
fn read(&mut self, buf: &mut [u8]) -> Result<usize, Self::Error>
Read some bytes from this source into the specified buffer, returning how many bytes were read. Read more
Source§fn read_exact(
&mut self,
buf: &mut [u8],
) -> Result<(), ReadExactError<Self::Error>>
fn read_exact( &mut self, buf: &mut [u8], ) -> Result<(), ReadExactError<Self::Error>>
Read the exact number of bytes required to fill
buf. Read moreAuto Trait Implementations§
impl<'a, T> Freeze for OpenLV<'a, T>where
T: Freeze,
impl<'a, T> RefUnwindSafe for OpenLV<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for OpenLV<'a, T>where
T: Send,
impl<'a, T> Sync for OpenLV<'a, T>where
T: Sync,
impl<'a, T> Unpin for OpenLV<'a, T>where
T: Unpin,
impl<'a, T> UnsafeUnpin for OpenLV<'a, T>where
T: UnsafeUnpin,
impl<'a, T> UnwindSafe for OpenLV<'a, T>where
T: 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