Struct random_access_disk::SyncMethods
[−]
[src]
pub struct SyncMethods {
pub filename: PathBuf,
pub file: Option<File>,
}Methods that have been implemented to provide synchronous access to disk. . These should generally be kept private, but exposed to prevent leaking internals.
Fields
filename: PathBuf
file: Option<File>
Trait Implementations
impl SyncMethods for SyncMethods[src]
fn open(&mut self) -> Result<(), Error>[src]
Open the backend.
fn write(&mut self, offset: usize, data: &[u8]) -> Result<(), Error>[src]
Write bytes at an offset to the backend.
fn read(&mut self, offset: usize, length: usize) -> Result<Vec<u8>, Error>[src]
Read a sequence of bytes at an offset from the backend.
fn del(&mut self, _offset: usize, _length: usize) -> Result<(), Error>[src]
Delete a sequence of bytes at an offset from the backend.