pub struct DelayDisk { /* private fields */ }Expand description
A disk with delay on every I/O operation.
Implementations§
Trait Implementations§
Source§impl DiskIo for DelayDisk
impl DiskIo for DelayDisk
Source§fn sector_count(&self) -> u64
fn sector_count(&self) -> u64
Passthrough
Source§fn sector_size(&self) -> u32
fn sector_size(&self) -> u32
Passthrough
Source§fn physical_sector_size(&self) -> u32
fn physical_sector_size(&self) -> u32
Passthrough
Source§fn is_fua_respected(&self) -> bool
fn is_fua_respected(&self) -> bool
Passthrough
Source§fn is_read_only(&self) -> bool
fn is_read_only(&self) -> bool
Passthrough
Source§async fn read_vectored(
&self,
buffers: &RequestBuffers<'_>,
sector: u64,
) -> Result<(), DiskError>
async fn read_vectored( &self, buffers: &RequestBuffers<'_>, sector: u64, ) -> Result<(), DiskError>
Delay and then Passthrough
Source§async fn write_vectored(
&self,
buffers: &RequestBuffers<'_>,
sector: u64,
fua: bool,
) -> Result<(), DiskError>
async fn write_vectored( &self, buffers: &RequestBuffers<'_>, sector: u64, fua: bool, ) -> Result<(), DiskError>
Delay and then Passthrough
Source§async fn sync_cache(&self) -> Result<(), DiskError>
async fn sync_cache(&self) -> Result<(), DiskError>
Passthrough
Source§async fn wait_resize(&self, sector_count: u64) -> u64
async fn wait_resize(&self, sector_count: u64) -> u64
Passthrough
Source§fn unmap(
&self,
sector: u64,
count: u64,
block_level_only: bool,
) -> impl Future<Output = Result<(), DiskError>> + Send
fn unmap( &self, sector: u64, count: u64, block_level_only: bool, ) -> impl Future<Output = Result<(), DiskError>> + Send
Passthrough
Source§fn unmap_behavior(&self) -> UnmapBehavior
fn unmap_behavior(&self) -> UnmapBehavior
Passthrough
Source§fn optimal_unmap_sectors(&self) -> u32
fn optimal_unmap_sectors(&self) -> u32
Passthrough
Auto Trait Implementations§
impl Freeze for DelayDisk
impl !RefUnwindSafe for DelayDisk
impl Send for DelayDisk
impl Sync for DelayDisk
impl Unpin for DelayDisk
impl !UnwindSafe for DelayDisk
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