Struct random_access_disk::RandomAccessDiskMethods [−][src]
pub struct RandomAccessDiskMethods { /* fields omitted */ }
Methods that have been implemented to provide synchronous access to disk. . These should generally be kept private, but exposed to prevent leaking internals.
Trait Implementations
impl Debug for RandomAccessDiskMethods
[src]
impl Debug for RandomAccessDiskMethods
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl RandomAccessMethods for RandomAccessDiskMethods
[src]
impl RandomAccessMethods for RandomAccessDiskMethods
type Error = Error
An error.
fn open(&mut self) -> Result<(), Self::Error>
[src]
fn open(&mut self) -> Result<(), Self::Error>
Open the backend.
fn write(&mut self, offset: usize, data: &[u8]) -> Result<(), Self::Error>
[src]
fn write(&mut self, offset: usize, data: &[u8]) -> Result<(), Self::Error>
Write bytes at an offset to the backend.
fn read(&mut self, offset: usize, length: usize) -> Result<Vec<u8>, Self::Error>
[src]
fn read(&mut self, offset: usize, length: usize) -> Result<Vec<u8>, Self::Error>
Read a sequence of bytes at an offset from the backend.
fn del(&mut self, _offset: usize, _length: usize) -> Result<(), Self::Error>
[src]
fn del(&mut self, _offset: usize, _length: usize) -> Result<(), Self::Error>
Delete a sequence of bytes at an offset from the backend.
impl Drop for RandomAccessDiskMethods
[src]
impl Drop for RandomAccessDiskMethods
Auto Trait Implementations
impl Send for RandomAccessDiskMethods
impl Send for RandomAccessDiskMethods
impl Sync for RandomAccessDiskMethods
impl Sync for RandomAccessDiskMethods