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
36
37
38
39
40
41
42
//! 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 WKErrorDomain: &'static NSString;
}

// NS_ENUM
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct WKErrorCode(pub NSInteger);
impl WKErrorCode {
    pub const WKErrorUnknown: Self = Self(1);
    pub const WKErrorWebContentProcessTerminated: Self = Self(2);
    pub const WKErrorWebViewInvalidated: Self = Self(3);
    pub const WKErrorJavaScriptExceptionOccurred: Self = Self(4);
    pub const WKErrorJavaScriptResultTypeIsUnsupported: Self = Self(5);
    pub const WKErrorContentRuleListStoreCompileFailed: Self = Self(6);
    pub const WKErrorContentRuleListStoreLookUpFailed: Self = Self(7);
    pub const WKErrorContentRuleListStoreRemoveFailed: Self = Self(8);
    pub const WKErrorContentRuleListStoreVersionMismatch: Self = Self(9);
    pub const WKErrorAttributedStringContentFailedToLoad: Self = Self(10);
    pub const WKErrorAttributedStringContentLoadTimedOut: Self = Self(11);
    pub const WKErrorJavaScriptInvalidFrameTarget: Self = Self(12);
    pub const WKErrorNavigationAppBoundDomain: Self = Self(13);
    pub const WKErrorJavaScriptAppBoundDomain: Self = Self(14);
    pub const WKErrorDuplicateCredential: Self = Self(15);
    pub const WKErrorMalformedCredential: Self = Self(16);
    pub const WKErrorCredentialNotFound: Self = Self(17);
}

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

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