objc2_shared_with_you/generated/
SWErrors.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use objc2::__framework_prelude::*;
4
5use crate::*;
6
7/// [Apple's documentation](https://developer.apple.com/documentation/sharedwithyou/swhighlightcentererrorcode?language=objc)
8// NS_ENUM
9#[repr(transparent)]
10#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
11pub struct SWHighlightCenterErrorCode(pub NSInteger);
12impl SWHighlightCenterErrorCode {
13    #[doc(alias = "SWHighlightCenterErrorCodeNoError")]
14    pub const NoError: Self = Self(0);
15    #[doc(alias = "SWHighlightCenterErrorCodeInternalError")]
16    pub const InternalError: Self = Self(1);
17    #[doc(alias = "SWHighlightCenterErrorCodeInvalidURL")]
18    pub const InvalidURL: Self = Self(2);
19    #[doc(alias = "SWHighlightCenterErrorCodeAccessDenied")]
20    pub const AccessDenied: Self = Self(3);
21}
22
23unsafe impl Encode for SWHighlightCenterErrorCode {
24    const ENCODING: Encoding = NSInteger::ENCODING;
25}
26
27unsafe impl RefEncode for SWHighlightCenterErrorCode {
28    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
29}