1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
use objc2_foundation::*;

use crate::*;

extern "C" {
    pub static DCErrorDomain: &'static NSErrorDomain;
}

// NS_ERROR_ENUM
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct DCError(pub NSInteger);
impl DCError {
    #[doc(alias = "DCErrorUnknownSystemFailure")]
    pub const UnknownSystemFailure: Self = Self(0);
    #[doc(alias = "DCErrorFeatureUnsupported")]
    pub const FeatureUnsupported: Self = Self(1);
    #[doc(alias = "DCErrorInvalidInput")]
    pub const InvalidInput: Self = Self(2);
    #[doc(alias = "DCErrorInvalidKey")]
    pub const InvalidKey: Self = Self(3);
    #[doc(alias = "DCErrorServerUnavailable")]
    pub const ServerUnavailable: Self = Self(4);
}

unsafe impl Encode for DCError {
    const ENCODING: Encoding = NSInteger::ENCODING;
}

unsafe impl RefEncode for DCError {
    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}