#[repr(transparent)]pub struct HMErrorCode(pub NSInteger);Available on crate feature
HMError only.Expand description
This enumeration describes the possible error constants that can be returned from the the HomeKit APIs.
See also Apple’s documentation
Tuple Fields§
§0: NSIntegerImplementations§
Source§impl HMErrorCode
impl HMErrorCode
pub const UnexpectedError: Self
pub const AlreadyExists: Self
pub const NotFound: Self
pub const InvalidParameter: Self
pub const AccessoryNotReachable: Self
pub const ReadOnlyCharacteristic: Self
pub const WriteOnlyCharacteristic: Self
pub const NotificationNotSupported: Self
pub const OperationTimedOut: Self
pub const AccessoryPoweredOff: Self
pub const AccessDenied: Self
pub const ObjectAssociatedToAnotherHome: Self
pub const ObjectNotAssociatedToAnyHome: Self
pub const ObjectAlreadyAssociatedToHome: Self
pub const AccessoryIsBusy: Self
pub const OperationInProgress: Self
pub const AccessoryOutOfResources: Self
pub const InsufficientPrivileges: Self
pub const AccessoryPairingFailed: Self
pub const InvalidDataFormatSpecified: Self
pub const NilParameter: Self
pub const UnconfiguredParameter: Self
pub const InvalidClass: Self
pub const OperationCancelled: Self
pub const RoomForHomeCannotBeInZone: Self
pub const NoActionsInActionSet: Self
pub const NoRegisteredActionSets: Self
pub const MissingParameter: Self
pub const FireDateInPast: Self
pub const RoomForHomeCannotBeUpdated: Self
pub const ActionInAnotherActionSet: Self
pub const ObjectWithSimilarNameExistsInHome: Self
pub const HomeWithSimilarNameExists: Self
pub const RenameWithSimilarName: Self
pub const CannotRemoveNonBridgeAccessory: Self
pub const NameContainsProhibitedCharacters: Self
pub const NameDoesNotStartWithValidCharacters: Self
pub const UserIDNotEmailAddress: Self
pub const UserDeclinedAddingUser: Self
pub const UserDeclinedRemovingUser: Self
pub const UserDeclinedInvite: Self
pub const UserManagementFailed: Self
pub const RecurrenceTooSmall: Self
pub const InvalidValueType: Self
pub const ValueLowerThanMinimum: Self
pub const ValueHigherThanMaximum: Self
pub const StringLongerThanMaximum: Self
pub const HomeAccessNotAuthorized: Self
pub const OperationNotSupported: Self
pub const MaximumObjectLimitReached: Self
pub const AccessorySentInvalidResponse: Self
pub const StringShorterThanMinimum: Self
pub const GenericError: Self
pub const SecurityFailure: Self
pub const CommunicationFailure: Self
pub const MessageAuthenticationFailed: Self
pub const InvalidMessageSize: Self
pub const AccessoryDiscoveryFailed: Self
pub const ClientRequestError: Self
pub const AccessoryResponseError: Self
pub const NameDoesNotEndWithValidCharacters: Self
pub const AccessoryIsBlocked: Self
pub const InvalidAssociatedServiceType: Self
pub const ActionSetExecutionFailed: Self
pub const ActionSetExecutionPartialSuccess: Self
pub const ActionSetExecutionInProgress: Self
pub const AccessoryOutOfCompliance: Self
pub const DataResetFailure: Self
pub const NotificationAlreadyEnabled: Self
pub const RecurrenceMustBeOnSpecifiedBoundaries: Self
pub const DateMustBeOnSpecifiedBoundaries: Self
pub const CannotActivateTriggerTooFarInFuture: Self
pub const RecurrenceTooLarge: Self
pub const ReadWritePartialSuccess: Self
pub const ReadWriteFailure: Self
pub const NotSignedIntoiCloud: Self
pub const KeychainSyncNotEnabled: Self
pub const CloudDataSyncInProgress: Self
pub const AddAccessoryFailed: Self
pub const MissingEntitlement: Self
pub const CannotUnblockNonBridgeAccessory: Self
pub const DeviceLocked: Self
pub const CannotRemoveBuiltinActionSet: Self
pub const LocationForHomeDisabled: Self
pub const NotAuthorizedForLocationServices: Self
pub const ReferToUserManual: Self
pub const InvalidOrMissingAuthorizationData: Self
pub const BridgedAccessoryNotReachable: Self
pub const NotAuthorizedForMicrophoneAccess: Self
pub const IncompatibleNetwork: Self
pub const NoHomeHub: Self
pub const NoCompatibleHomeHub: Self
pub const IncompatibleAccessory: Self
pub const IncompatibleHomeHub: Self
👎Deprecated
pub const ObjectWithSimilarNameExists: Self
pub const OwnershipFailure: Self
pub const MaximumAccessoriesOfTypeInHome: Self
pub const WiFiCredentialGenerationFailed: Self
pub const EnterpriseNetworkNotSupported: Self
pub const TimedOutWaitingForAccessory: Self
pub const AccessoryCommunicationFailure: Self
pub const FailedToJoinNetwork: Self
pub const AccessoryIsSuspended: Self
pub const PartialCommunicationFailure: Self
pub const HomeUpgradeRequired: Self
Trait Implementations§
Source§impl Clone for HMErrorCode
impl Clone for HMErrorCode
Source§fn clone(&self) -> HMErrorCode
fn clone(&self) -> HMErrorCode
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 HMErrorCode
impl Debug for HMErrorCode
Source§impl Encode for HMErrorCode
impl Encode for HMErrorCode
Source§impl Hash for HMErrorCode
impl Hash for HMErrorCode
Source§impl Ord for HMErrorCode
impl Ord for HMErrorCode
Source§fn cmp(&self, other: &HMErrorCode) -> Ordering
fn cmp(&self, other: &HMErrorCode) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for HMErrorCode
impl PartialEq for HMErrorCode
Source§impl PartialOrd for HMErrorCode
impl PartialOrd for HMErrorCode
Source§impl RefEncode for HMErrorCode
impl RefEncode for HMErrorCode
Source§const ENCODING_REF: Encoding
const ENCODING_REF: Encoding
The Objective-C type-encoding for a reference of this type. Read more
impl Copy for HMErrorCode
impl Eq for HMErrorCode
impl StructuralPartialEq for HMErrorCode
Auto Trait Implementations§
impl Freeze for HMErrorCode
impl RefUnwindSafe for HMErrorCode
impl Send for HMErrorCode
impl Sync for HMErrorCode
impl Unpin for HMErrorCode
impl UnwindSafe for HMErrorCode
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<T> EncodeArgument for Twhere
T: Encode,
impl<T> EncodeArgument for Twhere
T: Encode,
Source§const ENCODING_ARGUMENT: Encoding = T::ENCODING
const ENCODING_ARGUMENT: Encoding = T::ENCODING
The Objective-C type-encoding for this type.
Source§impl<T> EncodeReturn for Twhere
T: Encode,
impl<T> EncodeReturn for Twhere
T: Encode,
Source§const ENCODING_RETURN: Encoding = T::ENCODING
const ENCODING_RETURN: Encoding = T::ENCODING
The Objective-C type-encoding for this type.