#[non_exhaustive]pub enum Unavailability {
DeviceNotEligible,
AppleIntelligenceNotEnabled,
ModelNotReady,
OsTooOld,
Unknown,
}Expand description
Reason why SystemLanguageModel is unavailable.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
DeviceNotEligible
The hardware does not support Apple Intelligence (e.g. Intel Mac, M1).
AppleIntelligenceNotEnabled
Apple Intelligence is supported but disabled in System Settings.
ModelNotReady
Model assets are still downloading.
OsTooOld
The host OS is older than macOS 26.0.
Unknown
FoundationModels reported an unavailability reason this crate doesn’t
recognise — most likely added in a newer SDK.
Trait Implementations§
Source§fn clone(&self) -> Unavailability
fn clone(&self) -> Unavailability
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§fn eq(&self, other: &Unavailability) -> bool
fn eq(&self, other: &Unavailability) -> bool
Tests for
self and other values to be equal, and is used by ==.Auto Trait Implementations§
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