use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern "C" {
pub static MPErrorDomain: &'static NSString;
}
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct MPErrorCode(pub NSInteger);
impl MPErrorCode {
pub const MPErrorUnknown: Self = Self(0);
pub const MPErrorPermissionDenied: Self = Self(1);
pub const MPErrorCloudServiceCapabilityMissing: Self = Self(2);
pub const MPErrorNetworkConnectionFailed: Self = Self(3);
pub const MPErrorNotFound: Self = Self(4);
pub const MPErrorNotSupported: Self = Self(5);
pub const MPErrorCancelled: Self = Self(6);
pub const MPErrorRequestTimedOut: Self = Self(7);
}
unsafe impl Encode for MPErrorCode {
const ENCODING: Encoding = NSInteger::ENCODING;
}
unsafe impl RefEncode for MPErrorCode {
const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}