pub enum AvailabilityError {
DeviceNotEligible,
NotEnabled,
ModelNotReady,
Unknown,
}Expand description
Reasons why Apple Intelligence is not available on the current device.
Variants§
DeviceNotEligible
The device does not have compatible hardware (requires Apple Silicon M1 or later).
NotEnabled
Apple Intelligence is supported but has not been enabled in System Settings.
ModelNotReady
The on-device model is still downloading or is otherwise not ready.
Unknown
An unrecognized availability state was returned by the framework.
Trait Implementations§
Source§impl Clone for AvailabilityError
impl Clone for AvailabilityError
Source§fn clone(&self) -> AvailabilityError
fn clone(&self) -> AvailabilityError
Returns a duplicate of the value. Read more
1.0.0 · 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 AvailabilityError
impl Debug for AvailabilityError
Source§impl Display for AvailabilityError
impl Display for AvailabilityError
Source§impl Error for AvailabilityError
impl Error for AvailabilityError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for AvailabilityError
impl PartialEq for AvailabilityError
impl Eq for AvailabilityError
impl StructuralPartialEq for AvailabilityError
Auto Trait Implementations§
impl Freeze for AvailabilityError
impl RefUnwindSafe for AvailabilityError
impl Send for AvailabilityError
impl Sync for AvailabilityError
impl Unpin for AvailabilityError
impl UnsafeUnpin for AvailabilityError
impl UnwindSafe for AvailabilityError
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