pub struct RamBlockDevice { /* private fields */ }Implementations§
Trait Implementations§
Source§impl BlockDevice for RamBlockDevice
impl BlockDevice for RamBlockDevice
fn block_size(&self) -> usize
fn num_blocks(&self) -> usize
fn read_blocks( &self, block_idx: usize, num_blocks: usize, buf: &mut [u8], ) -> Result<usize, DeviceError>
fn write_blocks( &self, block_idx: usize, num_blocks: usize, buf: &[u8], ) -> Result<usize, DeviceError>
fn erase_blocks( &self, start_block: usize, num_blocks: usize, ) -> Result<usize, DeviceError>
fn name(&self) -> &str
fn device_type(&self) -> DeviceType
fn open(&self) -> Result<(), DeviceError>
fn close(&self) -> Result<(), DeviceError>
fn ioctl(&self, _cmd: u64, _arg: u64) -> Result<u64, DeviceError>
fn sync(&self) -> Result<(), DeviceError>
fn is_compatible(&self, _scan_info: &ScanInfo) -> bool
Auto Trait Implementations§
impl !Freeze for RamBlockDevice
impl !RefUnwindSafe for RamBlockDevice
impl Send for RamBlockDevice
impl Sync for RamBlockDevice
impl Unpin for RamBlockDevice
impl UnwindSafe for RamBlockDevice
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