pub struct CmdQueue { /* private fields */ }Implementations§
Source§impl CmdQueue
impl CmdQueue
pub fn id(&self) -> usize
pub fn num_blocks(&self) -> usize
pub fn block_size(&self) -> usize
Sourcepub fn read_blocks(
&mut self,
blk_id: usize,
blk_count: usize,
) -> impl Future<Output = Vec<Result<BlockData, BlkError>>>
pub fn read_blocks( &mut self, blk_id: usize, blk_count: usize, ) -> impl Future<Output = Vec<Result<BlockData, BlkError>>>
Read multiple blocks. Returns a future that resolves to a vector of results.
pub fn read_blocks_blocking( &mut self, blk_id: usize, blk_count: usize, ) -> Vec<Result<BlockData, BlkError>>
Sourcepub async fn write_blocks(
&mut self,
start_blk_id: usize,
data: &[u8],
) -> Vec<Result<(), BlkError>>
pub async fn write_blocks( &mut self, start_blk_id: usize, data: &[u8], ) -> Vec<Result<(), BlkError>>
Write multiple blocks. Caller provides owned Vec
pub fn write_blocks_blocking( &mut self, start_blk_id: usize, data: &[u8], ) -> Vec<Result<(), BlkError>>
Auto Trait Implementations§
impl Freeze for CmdQueue
impl !RefUnwindSafe for CmdQueue
impl Send for CmdQueue
impl !Sync for CmdQueue
impl Unpin for CmdQueue
impl !UnwindSafe for CmdQueue
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