pub struct ExecutionPlanTarget<B: ModelLoadingBackend> { /* private fields */ }Expand description
One target-backend instance and retained selection realized from a portable execution plan.
The backend owns its selected device, execution queues, transfer queues, and optional communication state. The authoritative selection was completed before those resources existed and is retained unchanged for materialization.
Implementations§
Source§impl<B: ModelLoadingBackend> ExecutionPlanTarget<B>
impl<B: ModelLoadingBackend> ExecutionPlanTarget<B>
Sourcepub fn new(backend: B, selected: SelectedExecutionPlanTarget<B>) -> Self
pub fn new(backend: B, selected: SelectedExecutionPlanTarget<B>) -> Self
Creates one backend-owned realization.
Backend adapters call this from ExecutionPlanBackendFactory::realize_target.
Portable identity, device, capability, and plan validation is applied by
realize_execution_plan_target before the value reaches an application.
Sourcepub fn into_runtime(
self,
) -> Result<PreparedExecutionPlanTarget<B>, ExecutionPlanTargetLoadError<B>>
pub fn into_runtime( self, ) -> Result<PreparedExecutionPlanTarget<B>, ExecutionPlanTargetLoadError<B>>
Materializes the retained selection and creates its inseparably paired runtime.
Auto Trait Implementations§
impl<B> Freeze for ExecutionPlanTarget<B>
impl<B> RefUnwindSafe for ExecutionPlanTarget<B>
impl<B> Send for ExecutionPlanTarget<B>
impl<B> Sync for ExecutionPlanTarget<B>
impl<B> Unpin for ExecutionPlanTarget<B>
impl<B> UnsafeUnpin for ExecutionPlanTarget<B>
impl<B> UnwindSafe for ExecutionPlanTarget<B>
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