Struct random_access_memory::RandomAccessMemoryMethods [−][src]
pub struct RandomAccessMemoryMethods { pub page_size: usize, pub buffers: Vec<Vec<u8>>, // some fields omitted }
Methods that have been implemented to provide synchronous access to memory buffers. These should generally be kept private, but exposed to prevent leaking internals.
Fields
page_size: usize
The length length of each buffer.
buffers: Vec<Vec<u8>>
The memory we read/write to.
Trait Implementations
impl Debug for RandomAccessMemoryMethods
[src]
impl Debug for RandomAccessMemoryMethods
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 RandomAccessMemoryMethods
[src]
impl RandomAccessMethods for RandomAccessMemoryMethods
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.
Auto Trait Implementations
impl Send for RandomAccessMemoryMethods
impl Send for RandomAccessMemoryMethods
impl Sync for RandomAccessMemoryMethods
impl Sync for RandomAccessMemoryMethods