[][src]Enum discord_game_sdk::Error

pub enum Error {
    ServiceUnavailable,
    InvalidVersion,
    LockFailed,
    Internal,
    InvalidPayload,
    InvalidCommand,
    InvalidPermissions,
    NotFetched,
    NotFound,
    Conflict,
    InvalidSecret,
    InvalidJoinSecret,
    NoEligibleActivity,
    InvalidInvite,
    NotAuthenticated,
    InvalidAccessToken,
    ApplicationMismatch,
    InvalidDataUrl,
    InvalidBase64,
    NotFiltered,
    LobbyFull,
    InvalidLobbySecret,
    InvalidFilename,
    InvalidFileSize,
    InvalidEntitlement,
    NotInstalled,
    NotRunning,
    InsufficientBuffer,
    PurchaseCanceled,
    InvalidGuild,
    InvalidEvent,
    InvalidChannel,
    InvalidOrigin,
    RateLimited,
    OAuth2,
    SelectChannelTimeout,
    GetGuildTimeout,
    SelectVoiceForceRequired,
    CaptureShortcutAlreadyListening,
    UnauthorizedForAchievement,
    InvalidGiftCode,
    Purchase,
    TransactionAborted,
    Undefined(EDiscordResult),
}

Discord Error

Enum in official docs

Variants

ServiceUnavailable

Discord isn't working

InvalidVersion

The SDK version is outdated

LockFailed

An internal erorr on transactional operations

Internal

Internal error

InvalidPayload

Invalid payload

InvalidCommand

Invalid command

InvalidPermissions

Invalid permissions

NotFetched

Could not fetch

NotFound

Not found

Conflict

User already has network connection open on that channel

InvalidSecret

Activity secrets must be unique and not match party id

InvalidJoinSecret

Join request for that user does not exist

NoEligibleActivity

Invalid Application ID in Activity payload (none should be set)

InvalidInvite

Invalid invite

NotAuthenticated

Not authenticated

InvalidAccessToken

The user's bearer token is invalid

ApplicationMismatch

Access token belongs to another application

InvalidDataUrl

Internal error fetching image data

InvalidBase64

Invalid base64 data

NotFiltered

Trying to access data before it was filtered

LobbyFull

Lobby full

InvalidLobbySecret

Invalid lobby secret

InvalidFilename

Filename is too long

InvalidFileSize

File is too big

InvalidEntitlement

Invalid entitlement

NotInstalled

Discord is not installed

NotRunning

Discord is not running

InsufficientBuffer

Insufficient buffer

PurchaseCanceled

Purchase canceled

InvalidGuild

Invalid guild

InvalidEvent

Invalid event

InvalidChannel

Invalid channel

InvalidOrigin

Invalid origin

RateLimited

Rate limited

OAuth2

OAuth2 error

SelectChannelTimeout

Select channel timeout

GetGuildTimeout

Get guild timeout

SelectVoiceForceRequired

Select voice force required

CaptureShortcutAlreadyListening

Capture shortcut already listening

UnauthorizedForAchievement

Unauthorized for achievement

InvalidGiftCode

Invalid gift code

Purchase

Purchase error

TransactionAborted

Transaction aborted

Undefined(EDiscordResult)

Safety net for missing definitions

Trait Implementations

impl Clone for Error[src]

impl Copy for Error[src]

impl Debug for Error[src]

impl Display for Error[src]

impl Eq for Error[src]

impl Error for Error[src]

impl Hash for Error[src]

impl PartialEq<Error> for Error[src]

impl StructuralEq for Error[src]

impl StructuralPartialEq for Error[src]

Auto Trait Implementations

impl RefUnwindSafe for Error

impl Send for Error

impl Sync for Error

impl Unpin for Error

impl UnwindSafe for Error

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.