objc2-game-kit 0.3.2

Bindings to the GameKit framework
Documentation
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;

use crate::*;

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/gamekit/gkgamesessionerrordomain?language=objc)
    #[deprecated = "GKGameSession is deprecated, use real-time and turn-based matchmaking APIs instead."]
    pub static GKGameSessionErrorDomain: &'static NSString;
}

/// [Apple's documentation](https://developer.apple.com/documentation/gamekit/gkgamesessionerrorcode?language=objc)
// NS_ENUM
#[deprecated = "GKGameSession is deprecated, use real-time and turn-based matchmaking APIs instead."]
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct GKGameSessionErrorCode(pub NSInteger);
impl GKGameSessionErrorCode {
    #[doc(alias = "GKGameSessionErrorUnknown")]
    #[deprecated = "GKGameSession is deprecated, use real-time and turn-based matchmaking APIs instead."]
    pub const Unknown: Self = Self(1);
    #[doc(alias = "GKGameSessionErrorNotAuthenticated")]
    #[deprecated = "GKGameSession is deprecated, use real-time and turn-based matchmaking APIs instead."]
    pub const NotAuthenticated: Self = Self(2);
    #[doc(alias = "GKGameSessionErrorSessionConflict")]
    #[deprecated = "GKGameSession is deprecated, use real-time and turn-based matchmaking APIs instead."]
    pub const SessionConflict: Self = Self(3);
    #[doc(alias = "GKGameSessionErrorSessionNotShared")]
    #[deprecated = "GKGameSession is deprecated, use real-time and turn-based matchmaking APIs instead."]
    pub const SessionNotShared: Self = Self(4);
    #[doc(alias = "GKGameSessionErrorConnectionCancelledByUser")]
    #[deprecated = "GKGameSession is deprecated, use real-time and turn-based matchmaking APIs instead."]
    pub const ConnectionCancelledByUser: Self = Self(5);
    #[doc(alias = "GKGameSessionErrorConnectionFailed")]
    #[deprecated = "GKGameSession is deprecated, use real-time and turn-based matchmaking APIs instead."]
    pub const ConnectionFailed: Self = Self(6);
    #[doc(alias = "GKGameSessionErrorSessionHasMaxConnectedPlayers")]
    #[deprecated = "GKGameSession is deprecated, use real-time and turn-based matchmaking APIs instead."]
    pub const SessionHasMaxConnectedPlayers: Self = Self(7);
    #[doc(alias = "GKGameSessionErrorSendDataNotConnected")]
    #[deprecated = "GKGameSession is deprecated, use real-time and turn-based matchmaking APIs instead."]
    pub const SendDataNotConnected: Self = Self(8);
    #[doc(alias = "GKGameSessionErrorSendDataNoRecipients")]
    #[deprecated = "GKGameSession is deprecated, use real-time and turn-based matchmaking APIs instead."]
    pub const SendDataNoRecipients: Self = Self(9);
    #[doc(alias = "GKGameSessionErrorSendDataNotReachable")]
    #[deprecated = "GKGameSession is deprecated, use real-time and turn-based matchmaking APIs instead."]
    pub const SendDataNotReachable: Self = Self(10);
    #[doc(alias = "GKGameSessionErrorSendRateLimitReached")]
    #[deprecated = "GKGameSession is deprecated, use real-time and turn-based matchmaking APIs instead."]
    pub const SendRateLimitReached: Self = Self(11);
    #[doc(alias = "GKGameSessionErrorBadContainer")]
    #[deprecated = "GKGameSession is deprecated, use real-time and turn-based matchmaking APIs instead."]
    pub const BadContainer: Self = Self(12);
    #[doc(alias = "GKGameSessionErrorCloudQuotaExceeded")]
    #[deprecated = "GKGameSession is deprecated, use real-time and turn-based matchmaking APIs instead."]
    pub const CloudQuotaExceeded: Self = Self(13);
    #[doc(alias = "GKGameSessionErrorNetworkFailure")]
    #[deprecated = "GKGameSession is deprecated, use real-time and turn-based matchmaking APIs instead."]
    pub const NetworkFailure: Self = Self(14);
    #[doc(alias = "GKGameSessionErrorCloudDriveDisabled")]
    #[deprecated = "GKGameSession is deprecated, use real-time and turn-based matchmaking APIs instead."]
    pub const CloudDriveDisabled: Self = Self(15);
    #[doc(alias = "GKGameSessionErrorInvalidSession")]
    #[deprecated = "GKGameSession is deprecated, use real-time and turn-based matchmaking APIs instead."]
    pub const InvalidSession: Self = Self(16);
}

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

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