#[non_exhaustive]pub enum HapStatus {
Show 13 variants
Success,
InsufficientPrivileges,
CommunicationFailure,
ResourceBusy,
WriteToReadOnly,
ReadFromWriteOnly,
NotificationNotSupported,
OutOfResources,
OperationTimedOut,
ResourceDoesNotExist,
InvalidValue,
InsufficientAuthorization,
Unknown(i64),
}Expand description
A HAP per-characteristic status (the negative ids accessories return in
/characteristics responses). 0 is success.
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.
Success
0 — success.
InsufficientPrivileges
-70401 — request denied due to insufficient privileges.
CommunicationFailure
-70402 — unable to communicate with the requested service/characteristic.
ResourceBusy
-70403 — resource is busy; try again.
WriteToReadOnly
-70404 — cannot write to a read-only characteristic.
ReadFromWriteOnly
-70405 — cannot read from a write-only characteristic.
NotificationNotSupported
-70406 — notification is not supported for the characteristic.
OutOfResources
-70407 — out of resources to process the request.
OperationTimedOut
-70408 — operation timed out.
ResourceDoesNotExist
-70409 — resource does not exist.
InvalidValue
-70410 — accessory received an invalid value in a write request.
InsufficientAuthorization
-70411 — insufficient authorization.
Unknown(i64)
Any code not in the HAP-defined set.
Implementations§
Trait Implementations§
impl Copy for HapStatus
impl Eq for HapStatus
impl StructuralPartialEq for HapStatus
Auto Trait Implementations§
impl Freeze for HapStatus
impl RefUnwindSafe for HapStatus
impl Send for HapStatus
impl Sync for HapStatus
impl Unpin for HapStatus
impl UnsafeUnpin for HapStatus
impl UnwindSafe for HapStatus
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