pub enum FastModeDisabledReason {
Free,
Preference,
ExtraUsageDisabled,
NetworkError,
UnknownReason,
NotFirstParty,
DisabledByEnv,
ModelNotAllowed,
SdkOptInRequired,
Pending,
Unknown(String),
}Expand description
Why fast mode can’t serve right now, carried on result frames and
system/init (CLI 2.1.219+). Absent when nothing blocks fast mode.
Variants§
Free
Free-tier account.
Preference
Disabled by user preference.
ExtraUsageDisabled
Extra-usage purchases are disabled for the account.
NetworkError
A network error prevented fast-mode eligibility from resolving.
UnknownReason
The CLI could not determine the reason.
NotFirstParty
Not a first-party API session (e.g. Bedrock/Vertex).
DisabledByEnv
Disabled via environment variable.
ModelNotAllowed
The active model does not support fast mode.
SdkOptInRequired
SDK sessions must opt in to fast mode.
Pending
Eligibility is still being determined.
Unknown(String)
A reason not yet known to this version of the crate.
Implementations§
Trait Implementations§
Source§impl Clone for FastModeDisabledReason
impl Clone for FastModeDisabledReason
Source§fn clone(&self) -> FastModeDisabledReason
fn clone(&self) -> FastModeDisabledReason
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 FastModeDisabledReason
impl Debug for FastModeDisabledReason
Source§impl<'de> Deserialize<'de> for FastModeDisabledReason
impl<'de> Deserialize<'de> for FastModeDisabledReason
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for FastModeDisabledReason
impl Display for FastModeDisabledReason
impl Eq for FastModeDisabledReason
Source§impl From<&str> for FastModeDisabledReason
impl From<&str> for FastModeDisabledReason
Source§impl Hash for FastModeDisabledReason
impl Hash for FastModeDisabledReason
Source§impl PartialEq for FastModeDisabledReason
impl PartialEq for FastModeDisabledReason
Source§impl Serialize for FastModeDisabledReason
impl Serialize for FastModeDisabledReason
impl StructuralPartialEq for FastModeDisabledReason
Auto Trait Implementations§
impl Freeze for FastModeDisabledReason
impl RefUnwindSafe for FastModeDisabledReason
impl Send for FastModeDisabledReason
impl Sync for FastModeDisabledReason
impl Unpin for FastModeDisabledReason
impl UnsafeUnpin for FastModeDisabledReason
impl UnwindSafe for FastModeDisabledReason
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