pub enum ReadStep {
Input {
len: usize,
},
Tensor,
Finished,
}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
take_tensor — before the core produces another
(ADR-041 § 4).
Variants§
Input
Fill up to len bytes of input_dst, then report
how many arrived. Filling fewer is normal; 0 means end of input.
Tensor
A tensor is complete. Collect it with
take_tensor.
Finished
End of input, reached cleanly at a tensor boundary.
Trait Implementations§
impl Copy for ReadStep
impl Eq for ReadStep
impl StructuralPartialEq for ReadStep
Auto Trait Implementations§
impl Freeze for ReadStep
impl RefUnwindSafe for ReadStep
impl Send for ReadStep
impl Sync for ReadStep
impl Unpin for ReadStep
impl UnsafeUnpin for ReadStep
impl UnwindSafe for ReadStep
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