pub enum PreflightDecision {
NoOp(NoOpReason),
BlockedByBudget(BudgetExceeded),
InvokeModel(ModelRequestBudget),
}Variants§
NoOp(NoOpReason)
The caller must not invoke a model.
BlockedByBudget(BudgetExceeded)
A meaningful update exists, but the maximum possible request would cross a hard budget. The caller must not invoke a model.
InvokeModel(ModelRequestBudget)
The model may be invoked with exactly these hard ceilings.
Implementations§
Source§impl PreflightDecision
impl PreflightDecision
pub fn permits_model_call(self) -> bool
Trait Implementations§
Source§impl Clone for PreflightDecision
impl Clone for PreflightDecision
impl Copy for PreflightDecision
Source§impl Debug for PreflightDecision
impl Debug for PreflightDecision
impl Eq for PreflightDecision
Source§impl PartialEq for PreflightDecision
impl PartialEq for PreflightDecision
impl StructuralPartialEq for PreflightDecision
Auto Trait Implementations§
impl Freeze for PreflightDecision
impl RefUnwindSafe for PreflightDecision
impl Send for PreflightDecision
impl Sync for PreflightDecision
impl Unpin for PreflightDecision
impl UnsafeUnpin for PreflightDecision
impl UnwindSafe for PreflightDecision
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,
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.