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
pub fn read_blocks( &mut self, blk_id: usize, blk_count: usize, ) -> impl Future<Output = Vec<Result<BlockData, BlkError>>>
pub fn read_blocks_blocking( &mut self, blk_id: usize, blk_count: usize, ) -> Vec<Result<BlockData, BlkError>>
pub async fn write_blocks( &mut self, start_blk_id: usize, data: &[u8], ) -> Vec<Result<(), BlkError>>
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 UnsafeUnpin 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