pub struct SharedRingBufferBlockIO<N, P, A, F> { /* private fields */ }
Implementations§
pub fn new( block_size: N, num_blocks: u64, dma_region: ExternallySharedRef<'static, [u8]>, bounce_buffer_allocator: BounceBufferAllocator<A>, ring_buffers: RingBuffers<'static, Provide, F, BlockIORequest>, ) -> Self
pub fn poll(&self) -> Result<bool, Error>
Trait Implementations§
async fn read_or_write_blocks( &self, start_block_idx: u64, operation: Operation<'_, P>, ) -> Result<(), Self::Error>
async fn read_blocks(
&self,
start_block_idx: u64,
buf: &mut [u8],
) -> Result<(), Self::Error>where
A: ReadAccess,
async fn write_blocks(
&self,
start_block_idx: u64,
buf: &[u8],
) -> Result<(), Self::Error>where
A: WriteAccess,
Auto Trait Implementations§
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)