pub struct ReadRequest {
pub id: RequestId,
pub key: ResourceKey,
pub class: Class,
pub handle: Handle,
pub run: PageRun,
pub lba: u32,
pub sectors: u32,
pub deadline_ticks: u32,
pub contiguous_with: Option<RequestId>,
}Expand description
One read for the transport to perform: sectors sectors from lba into
run of the pool named by handle, sector n landing at page
run.first_page + n.
Fields§
§id: RequestIdIdentity to report the outcome against.
key: ResourceKeyThe resource being read.
class: ClassPriority class at submission (see Host::promote).
handle: HandleAllocation the sectors land in.
run: PageRunThe pages of that allocation.
lba: u32First sector on the disc.
sectors: u32Sector count.
deadline_ticks: u32Ticks until the data is needed, as the engine’s wanted entry said
(u32::MAX when unknown). Earliest deadline first inside a class.
contiguous_with: Option<RequestId>An in-flight request that ends exactly at lba. A transport can chain
the two without a seek.
Trait Implementations§
Source§impl Clone for ReadRequest
impl Clone for ReadRequest
Source§fn clone(&self) -> ReadRequest
fn clone(&self) -> ReadRequest
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReadRequest
impl Debug for ReadRequest
Source§impl PartialEq for ReadRequest
impl PartialEq for ReadRequest
impl Copy for ReadRequest
impl Eq for ReadRequest
impl StructuralPartialEq for ReadRequest
Auto Trait Implementations§
impl Freeze for ReadRequest
impl RefUnwindSafe for ReadRequest
impl Send for ReadRequest
impl Sync for ReadRequest
impl Unpin for ReadRequest
impl UnsafeUnpin for ReadRequest
impl UnwindSafe for ReadRequest
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, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)