#[repr(u16)]pub enum KernelReason {
Show 13 variants
RequestedModelMaximizesUtility = 1,
AlternativeMaximizesUtility = 2,
RiskHardLimit = 100,
ConfidenceHardLimit = 101,
NoEnabledModel = 102,
QualityConstraint = 103,
LatencyConstraint = 104,
CapabilityConstraint = 105,
ProviderConstraint = 106,
RegionConstraint = 107,
BudgetConstraint = 108,
NonPositiveUtility = 109,
RiskCeilingConstraint = 110,
}Expand description
Why the kernel made this decision.
Variants§
RequestedModelMaximizesUtility = 1
The requested model had the highest utility.
AlternativeMaximizesUtility = 2
A substitute model had higher utility.
RiskHardLimit = 100
Request risk exceeded the hard limit.
ConfidenceHardLimit = 101
Request confidence was below the minimum.
NoEnabledModel = 102
No enabled models in the catalog.
QualityConstraint = 103
All models failed the quality floor.
LatencyConstraint = 104
All models exceeded the latency cap.
CapabilityConstraint = 105
No model had the required capabilities.
ProviderConstraint = 106
No model matched the allowed provider mask.
RegionConstraint = 107
No model matched the required region mask.
BudgetConstraint = 108
All models exceeded the budget limit.
NonPositiveUtility = 109
All eligible models had non-positive utility.
RiskCeilingConstraint = 110
Request risk exceeded the model’s risk ceiling.
Trait Implementations§
Source§impl Clone for KernelReason
impl Clone for KernelReason
Source§fn clone(&self) -> KernelReason
fn clone(&self) -> KernelReason
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 KernelReason
Source§impl Debug for KernelReason
impl Debug for KernelReason
Source§impl<'de> Deserialize<'de> for KernelReason
impl<'de> Deserialize<'de> for KernelReason
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for KernelReason
impl Display for KernelReason
impl Eq for KernelReason
Source§impl PartialEq for KernelReason
impl PartialEq for KernelReason
Source§fn eq(&self, other: &KernelReason) -> bool
fn eq(&self, other: &KernelReason) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for KernelReason
impl Serialize for KernelReason
impl StructuralPartialEq for KernelReason
Auto Trait Implementations§
impl Freeze for KernelReason
impl RefUnwindSafe for KernelReason
impl Send for KernelReason
impl Sync for KernelReason
impl Unpin for KernelReason
impl UnsafeUnpin for KernelReason
impl UnwindSafe for KernelReason
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.