objc2-execution-policy 0.3.2

Bindings to the ExecutionPolicy framework
Documentation
//! 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" {
    /// [Apple's documentation](https://developer.apple.com/documentation/executionpolicy/eperrordomain?language=objc)
    pub static EPErrorDomain: Option<&'static NSErrorDomain>;
}

/// [Apple's documentation](https://developer.apple.com/documentation/executionpolicy/eperror?language=objc)
// NS_ERROR_ENUM
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct EPError(pub NSInteger);
impl EPError {
    #[doc(alias = "EPErrorGeneric")]
    pub const Generic: Self = Self(1);
    #[doc(alias = "EPErrorNotADeveloperTool")]
    pub const NotADeveloperTool: Self = Self(2);
}

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

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