Skip to main content

ErrorCode

Enum ErrorCode 

Source
#[non_exhaustive]
pub enum ErrorCode {
Show 27 variants TicketMissing, TicketExpired, TicketInvalid, DeviceMismatch, ClockRollback, NotOwned, NetworkRequired, NotAuthenticated, ArcaneUnavailable, FeatureUnavailable, UnknownAchievement, LobbyNotFound, LobbyFull, LobbyClosed, NotFriends, NotHost, UserNotFound, AlreadyFriends, NotInLobby, NoOpenSession, RateLimited, MissingGameId, InvalidGameId, InvalidArgument, AmbiguousSession, NotInitialized, Internal,
}

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

TicketMissing

No ticket cache, or the cached ticket is empty while DRM is on.

§

TicketExpired

The ticket JWT is past exp (beyond clock skew).

§

TicketInvalid

Bad JWT, missing/invalid JWKS, wrong title, or own=false.

§

DeviceMismatch

The ticket is bound to a different machine.

§

ClockRollback

The system clock is earlier than the ticket or the last-seen time.

§

NotOwned

Cloud confirmed the signed-in account does not own this title.

§

NetworkRequired

No usable offline ticket, and a refresh needs the network.

§

NotAuthenticated

Arcane desktop is reachable but nobody is signed in.

§

ArcaneUnavailable

Could not reach or launch the Arcane desktop loopback server.

§

FeatureUnavailable

The Arcane desktop app does not know this route yet — it predates the feature the SDK asked for.

§

UnknownAchievement

The Arcane desktop app knows the route but not the achievement the game asked to unlock.

§

LobbyNotFound

No open lobby with that id or join code.

§

LobbyFull

The lobby already holds max_players.

§

LobbyClosed

The lobby was closed by its host, or its host’s session expired.

§

NotFriends

The lobby is visible to the host’s friends only, and this player is not one of them.

§

NotHost

Only the lobby’s host may do this — change its metadata or close it.

§

UserNotFound

No Arcane account has that id.

§

AlreadyFriends

You are already friends with that player, or a friend request between you is already pending either way.

§

NotInLobby

The coop network was asked for a lobby this player is not a member of.

§

NoOpenSession

The Arcane desktop app has no play session open for this game, so it will not open the coop network.

§

RateLimited

Arcane refused the call because this player made too many of them; wait and try again.

§

MissingGameId

ARCANE_GAME_ID is unset or empty — the game was not started by Arcane Powered, and no developer override is in place.

§

InvalidGameId

The game id in ARCANE_GAME_ID is oversized or has forbidden characters.

§

InvalidArgument

An argument other than the game id is empty, oversized, or has forbidden characters.

§

AmbiguousSession

Several accounts hold a ticket for this title and Arcane has not recorded which one is signed in.

§

NotInitialized

A client accessor was used before a successful init (C ABI only).

§

Internal

Filesystem / path failure.

Implementations§

Source§

impl ErrorCode

Source

pub fn as_str(&self) -> &'static str

Stable wire string. This is the public contract — never change these.

Trait Implementations§

Source§

impl Clone for ErrorCode

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for ErrorCode

Source§

impl Debug for ErrorCode

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for ErrorCode

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for ErrorCode

Source§

impl Hash for ErrorCode

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for ErrorCode

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for ErrorCode

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.