use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern "C" {
pub static VNErrorDomain: Option<&'static NSString>;
}
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct VNErrorCode(pub NSInteger);
impl VNErrorCode {
#[doc(alias = "VNErrorTuriCoreErrorCode")]
pub const TuriCoreErrorCode: Self = Self(-1);
#[doc(alias = "VNErrorOK")]
pub const OK: Self = Self(0);
#[doc(alias = "VNErrorRequestCancelled")]
pub const RequestCancelled: Self = Self(1);
#[doc(alias = "VNErrorInvalidFormat")]
pub const InvalidFormat: Self = Self(2);
#[doc(alias = "VNErrorOperationFailed")]
pub const OperationFailed: Self = Self(3);
#[doc(alias = "VNErrorOutOfBoundsError")]
pub const OutOfBoundsError: Self = Self(4);
#[doc(alias = "VNErrorInvalidOption")]
pub const InvalidOption: Self = Self(5);
#[doc(alias = "VNErrorIOError")]
pub const IOError: Self = Self(6);
#[doc(alias = "VNErrorMissingOption")]
pub const MissingOption: Self = Self(7);
#[doc(alias = "VNErrorNotImplemented")]
pub const NotImplemented: Self = Self(8);
#[doc(alias = "VNErrorInternalError")]
pub const InternalError: Self = Self(9);
#[doc(alias = "VNErrorOutOfMemory")]
pub const OutOfMemory: Self = Self(10);
#[doc(alias = "VNErrorUnknownError")]
pub const UnknownError: Self = Self(11);
#[doc(alias = "VNErrorInvalidOperation")]
pub const InvalidOperation: Self = Self(12);
#[doc(alias = "VNErrorInvalidImage")]
pub const InvalidImage: Self = Self(13);
#[doc(alias = "VNErrorInvalidArgument")]
pub const InvalidArgument: Self = Self(14);
#[doc(alias = "VNErrorInvalidModel")]
pub const InvalidModel: Self = Self(15);
#[doc(alias = "VNErrorUnsupportedRevision")]
pub const UnsupportedRevision: Self = Self(16);
#[doc(alias = "VNErrorDataUnavailable")]
pub const DataUnavailable: Self = Self(17);
#[doc(alias = "VNErrorTimeStampNotFound")]
pub const TimeStampNotFound: Self = Self(18);
#[doc(alias = "VNErrorUnsupportedRequest")]
pub const UnsupportedRequest: Self = Self(19);
#[doc(alias = "VNErrorTimeout")]
pub const Timeout: Self = Self(20);
#[doc(alias = "VNErrorUnsupportedComputeStage")]
pub const UnsupportedComputeStage: Self = Self(21);
#[doc(alias = "VNErrorUnsupportedComputeDevice")]
pub const UnsupportedComputeDevice: Self = Self(22);
}
unsafe impl Encode for VNErrorCode {
const ENCODING: Encoding = NSInteger::ENCODING;
}
unsafe impl RefEncode for VNErrorCode {
const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}