pub struct NumericalProfileResolution { /* private fields */ }Expand description
Created by the composition owner from the retained static plan. It cannot be deserialized as trusted evidence. Revalidation requires the independently supplied selection, including the original request and rejected candidates.
Implementations§
Source§impl NumericalProfileResolution
impl NumericalProfileResolution
Sourcepub fn from_static_plan(
requested: NumericalExecutionPolicy,
requested_kv_storage: KvStorageFormat,
definition: &ModelFamilyDefinition,
family: &PreparedModelFamily,
capabilities: &CapabilityCatalog,
runtime: &ResolvedRuntimePolicy,
plan: &ExecutionPlan,
rejected: Vec<NumericalProfileRejection>,
) -> Result<Self, VNextError>
pub fn from_static_plan( requested: NumericalExecutionPolicy, requested_kv_storage: KvStorageFormat, definition: &ModelFamilyDefinition, family: &PreparedModelFamily, capabilities: &CapabilityCatalog, runtime: &ResolvedRuntimePolicy, plan: &ExecutionPlan, rejected: Vec<NumericalProfileRejection>, ) -> Result<Self, VNextError>
The caller supplies failures observed while trying the declared prefix of candidates with the same registries. Successful compilation remains bound to this exact family, catalog and runtime policy. This constructor does not qualify new numerical profiles for Auto.
pub fn requested(&self) -> &NumericalExecutionPolicy
pub fn requested_kv_storage(&self) -> KvStorageFormat
pub fn selected_kv_storage(&self) -> Option<KvStorageFormat>
pub fn selected_profile(&self) -> &NumericalProfileId
pub fn rejected(&self) -> &[NumericalProfileRejection]
Trait Implementations§
Source§impl Clone for NumericalProfileResolution
impl Clone for NumericalProfileResolution
Source§fn clone(&self) -> NumericalProfileResolution
fn clone(&self) -> NumericalProfileResolution
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 moreSource§impl Debug for NumericalProfileResolution
impl Debug for NumericalProfileResolution
impl Eq for NumericalProfileResolution
impl StructuralPartialEq for NumericalProfileResolution
Auto Trait Implementations§
impl Freeze for NumericalProfileResolution
impl RefUnwindSafe for NumericalProfileResolution
impl Send for NumericalProfileResolution
impl Sync for NumericalProfileResolution
impl Unpin for NumericalProfileResolution
impl UnsafeUnpin for NumericalProfileResolution
impl UnwindSafe for NumericalProfileResolution
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