use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern "C" {
pub static WKErrorDomain: &'static NSString;
}
#[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);
}