pub enum FileStep {
Range {
offset: u64,
len: usize,
},
Ready,
Descriptor,
Tensor,
Composite,
}Expand description
What the core needs next from its driver.
Exactly one request is outstanding at a time, and the driver answers it — with
report_filled or one of the take_* methods —
before the core produces another (ADR-041 § 4).
Variants§
Range
Read the bytes at [offset, offset + len) into
input_dst, then report how many arrived.
Filling fewer than len is normal — the remainder is requested again — but 0
means the file is shorter than its own index claims, which is a truncated file.
Fields
Ready
The file is open and no job is in flight: call begin_descriptor, begin_tensor
or begin_composite.
Descriptor
A descriptor is ready. Collect it with
take_descriptor.
Tensor
A tensor is ready. Collect it with take_tensor.
Composite
A composite is ready. Collect it with
take_composite.
Trait Implementations§
impl Copy for FileStep
impl Eq for FileStep
impl StructuralPartialEq for FileStep
Auto Trait Implementations§
impl Freeze for FileStep
impl RefUnwindSafe for FileStep
impl Send for FileStep
impl Sync for FileStep
impl Unpin for FileStep
impl UnsafeUnpin for FileStep
impl UnwindSafe for FileStep
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