Struct random_access_disk::RandomAccessDisk
source · pub struct RandomAccessDisk { /* private fields */ }
Expand description
Main constructor.
Implementations§
Trait Implementations§
source§impl Debug for RandomAccessDisk
impl Debug for RandomAccessDisk
source§impl Drop for RandomAccessDisk
impl Drop for RandomAccessDisk
source§impl RandomAccess for RandomAccessDisk
impl RandomAccess for RandomAccessDisk
source§fn write(&mut self, offset: usize, data: &[u8]) -> Result<(), Self::Error>
fn write(&mut self, offset: usize, data: &[u8]) -> Result<(), Self::Error>
Write bytes at an offset to the backend.
source§fn read(&mut self, offset: usize, length: usize) -> Result<Vec<u8>, Self::Error>
fn read(&mut self, offset: usize, length: usize) -> Result<Vec<u8>, Self::Error>
Read a sequence of bytes at an offset from the backend.
source§fn read_to_writer(
&mut self,
_offset: usize,
_length: usize,
_buf: &mut impl Write
) -> Result<(), Self::Error>
fn read_to_writer(
&mut self,
_offset: usize,
_length: usize,
_buf: &mut impl Write
) -> Result<(), Self::Error>
Read a sequence of bytes at an offset from the backend.
source§fn del(&mut self, _offset: usize, _length: usize) -> Result<(), Self::Error>
fn del(&mut self, _offset: usize, _length: usize) -> Result<(), Self::Error>
Delete a sequence of bytes at an offset from the backend.