pub struct TransferPlanner { /* private fields */ }Implementations§
Source§impl TransferPlanner
impl TransferPlanner
pub fn new( device: DeviceInfo, limits: QueueLimits, caps: TransferRuntimeCaps, ) -> Result<Self, BlkError>
pub const fn chunk_size(&self) -> usize
pub fn plan(&self, lba: u64, byte_len: usize) -> Result<TransferPlan, BlkError>
Trait Implementations§
Source§impl Clone for TransferPlanner
impl Clone for TransferPlanner
Source§fn clone(&self) -> TransferPlanner
fn clone(&self) -> TransferPlanner
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TransferPlanner
Auto Trait Implementations§
impl Freeze for TransferPlanner
impl RefUnwindSafe for TransferPlanner
impl Send for TransferPlanner
impl Sync for TransferPlanner
impl Unpin for TransferPlanner
impl UnsafeUnpin for TransferPlanner
impl UnwindSafe for TransferPlanner
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