pub struct DeviceReusableExecutionPreparation { /* private fields */ }Expand description
Backend receipt for the explicit configure -> prepare -> seal lifecycle.
Captures happen only between Preparing and Ready. Once sealed, a
backend must replay a resident executable or use eager execution; it must
not compile new work on a product request.
Implementations§
Source§impl DeviceReusableExecutionPreparation
impl DeviceReusableExecutionPreparation
pub const fn unsupported() -> Self
pub fn preparing(plan: DeviceReusableExecutionPlan) -> Self
pub fn preparing_with_progress( plan: DeviceReusableExecutionPlan, resident_executables: usize, rejected_executables: usize, captured_executables: u64, uploaded_executables: u64, capacity_deferred_executables: u64, ) -> Result<Self, VNextError>
pub fn ready( plan: DeviceReusableExecutionPlan, resident_executables: usize, rejected_executables: usize, captured_executables: u64, uploaded_executables: u64, capacity_deferred_executables: u64, ) -> Result<Self, VNextError>
pub const fn state(self) -> DeviceReusableExecutionPreparationState
pub const fn maximum_executables(self) -> u64
pub const fn resident_executables(self) -> u64
pub const fn rejected_executables(self) -> u64
pub const fn captured_executables(self) -> u64
pub const fn uploaded_executables(self) -> u64
pub const fn capacity_deferred_executables(self) -> u64
Trait Implementations§
Source§impl Clone for DeviceReusableExecutionPreparation
impl Clone for DeviceReusableExecutionPreparation
Source§fn clone(&self) -> DeviceReusableExecutionPreparation
fn clone(&self) -> DeviceReusableExecutionPreparation
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 DeviceReusableExecutionPreparation
impl Eq for DeviceReusableExecutionPreparation
impl StructuralPartialEq for DeviceReusableExecutionPreparation
Auto Trait Implementations§
impl Freeze for DeviceReusableExecutionPreparation
impl RefUnwindSafe for DeviceReusableExecutionPreparation
impl Send for DeviceReusableExecutionPreparation
impl Sync for DeviceReusableExecutionPreparation
impl Unpin for DeviceReusableExecutionPreparation
impl UnsafeUnpin for DeviceReusableExecutionPreparation
impl UnwindSafe for DeviceReusableExecutionPreparation
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