pub struct SelectedModelPreparation<B: ModelLoadingBackend> { /* private fields */ }Expand description
One neutral preparation plan inseparably paired with its backend selection.
Core creates this value only after policy, architecture, and session-capability admission have succeeded against the same artifact inspection. Backend adapters may consume the pair, but callers cannot substitute a different plan after selection.
Implementations§
Source§impl<B: ModelLoadingBackend> SelectedModelPreparation<B>
impl<B: ModelLoadingBackend> SelectedModelPreparation<B>
Sourcepub fn into_parts(
self,
) -> (ModelPreparationPlan<<B::ConfigurationResolver as ModelConfigurationResolver>::ArtifactPlan>, B::SelectedPreparation)
pub fn into_parts( self, ) -> (ModelPreparationPlan<<B::ConfigurationResolver as ModelConfigurationResolver>::ArtifactPlan>, B::SelectedPreparation)
Consumes the binding into the exact admitted plan and backend selection.
Auto Trait Implementations§
impl<B> Freeze for SelectedModelPreparation<B>where
ModelPreparationPlan<<<B as ModelLoadingBackend>::ConfigurationResolver as ModelConfigurationResolver>::ArtifactPlan>: Freeze,
<B as ModelLoadingBackend>::SelectedPreparation: Freeze,
impl<B> RefUnwindSafe for SelectedModelPreparation<B>where
ModelPreparationPlan<<<B as ModelLoadingBackend>::ConfigurationResolver as ModelConfigurationResolver>::ArtifactPlan>: RefUnwindSafe,
<B as ModelLoadingBackend>::SelectedPreparation: RefUnwindSafe,
impl<B> Send for SelectedModelPreparation<B>where
ModelPreparationPlan<<<B as ModelLoadingBackend>::ConfigurationResolver as ModelConfigurationResolver>::ArtifactPlan>: Send,
<B as ModelLoadingBackend>::SelectedPreparation: Send,
impl<B> Sync for SelectedModelPreparation<B>where
ModelPreparationPlan<<<B as ModelLoadingBackend>::ConfigurationResolver as ModelConfigurationResolver>::ArtifactPlan>: Sync,
<B as ModelLoadingBackend>::SelectedPreparation: Sync,
impl<B> Unpin for SelectedModelPreparation<B>where
ModelPreparationPlan<<<B as ModelLoadingBackend>::ConfigurationResolver as ModelConfigurationResolver>::ArtifactPlan>: Unpin,
<B as ModelLoadingBackend>::SelectedPreparation: Unpin,
impl<B> UnsafeUnpin for SelectedModelPreparation<B>where
ModelPreparationPlan<<<B as ModelLoadingBackend>::ConfigurationResolver as ModelConfigurationResolver>::ArtifactPlan>: UnsafeUnpin,
<B as ModelLoadingBackend>::SelectedPreparation: UnsafeUnpin,
impl<B> UnwindSafe for SelectedModelPreparation<B>where
ModelPreparationPlan<<<B as ModelLoadingBackend>::ConfigurationResolver as ModelConfigurationResolver>::ArtifactPlan>: UnwindSafe,
<B as ModelLoadingBackend>::SelectedPreparation: UnwindSafe,
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