pub enum Error {
Show 82 variants
PlayerAlreadyJoined(String),
PositionOccupied(usize),
GameIsFull(u32),
ServerQueueIsFull(u32),
NoEnoughPlayers,
ServerAlreadyJoined(String),
PlayerNotInGame,
MalformedData(String),
MalformedAddress,
InvalidRandomnessAssignment,
InvalidRandomnessRevealing,
InvalidRandomId,
Custom(String),
ServerAccountNotFound,
PlayerProfileNotFound,
GameAccountNotFound,
GameBundleNotFound,
ServerAccountExists,
RegistrationNotFound,
RpcError(String),
InvalidChainName,
InvalidPlayerAddress,
InvalidPlayerStatus,
GameNotLoaded,
MalformedEndpoint,
MalformedGameBundle,
MalformedGameAccount,
DeserializeError,
ConfigMissing,
TransactorConfigMissing,
CantLeave,
RandomizationError(String),
CryptoError(String),
DuplicatedEventDispatching,
InvalidAmount,
NotAllowedInCustomHandler,
GameNotServed,
GameIsNotEmpty,
CantFindTransactor,
InvalidTransactorAddress,
ServerAccountMissing,
TransportError(String),
InitInstructionFailed(String),
InitializeRpcClientError(String),
InternalError(String),
MissingSecret,
InvalidSecret,
InvalidDecryptedValue(String),
DecryptionFailed,
InvalidKeyIndex,
InvalidCiphertextsSize(u32, u32),
InvalidMaxPlayers,
JsonParseError,
SignatureVerificationFailed,
InvalidSettle(String),
IoError(String),
NotSupportedInValidatorMode,
InvalidVoter(String),
InvalidVotee(String),
DuplicatedVote,
TransactionExpired,
EventIgnored,
WalletNotConnected,
InvalidCustomEvent,
InvalidDecisionId,
AnswerNotAvailable,
MissingDecisionSecret(DecisionId),
InvalidDecisionAnswer,
InvalidDecisionOwner,
InvalidDecisionStatus,
DuplicatedSecretShare,
SerializationError,
WasmInitializationError(String),
WasmExecutionError(String),
WasmMemoryOverflow,
InvalidCheckpoint,
DuplicatedInitialization,
RandomnessNotRevealed,
RandomStateNotFound(RandomId),
HandleError(HandleError),
InvalidRecipientSlotParams,
TransferWithoutSettle,
}Variants§
PlayerAlreadyJoined(String)
PositionOccupied(usize)
GameIsFull(u32)
ServerQueueIsFull(u32)
NoEnoughPlayers
ServerAlreadyJoined(String)
PlayerNotInGame
MalformedData(String)
MalformedAddress
InvalidRandomnessAssignment
InvalidRandomnessRevealing
InvalidRandomId
Custom(String)
ServerAccountNotFound
PlayerProfileNotFound
GameAccountNotFound
GameBundleNotFound
ServerAccountExists
RegistrationNotFound
RpcError(String)
InvalidChainName
InvalidPlayerAddress
InvalidPlayerStatus
GameNotLoaded
MalformedEndpoint
MalformedGameBundle
MalformedGameAccount
DeserializeError
ConfigMissing
TransactorConfigMissing
CantLeave
RandomizationError(String)
CryptoError(String)
DuplicatedEventDispatching
InvalidAmount
NotAllowedInCustomHandler
GameNotServed
GameIsNotEmpty
CantFindTransactor
InvalidTransactorAddress
ServerAccountMissing
TransportError(String)
InitInstructionFailed(String)
InitializeRpcClientError(String)
InternalError(String)
MissingSecret
InvalidSecret
InvalidDecryptedValue(String)
DecryptionFailed
InvalidKeyIndex
InvalidCiphertextsSize(u32, u32)
InvalidMaxPlayers
JsonParseError
SignatureVerificationFailed
InvalidSettle(String)
IoError(String)
NotSupportedInValidatorMode
InvalidVoter(String)
InvalidVotee(String)
DuplicatedVote
TransactionExpired
EventIgnored
WalletNotConnected
InvalidCustomEvent
InvalidDecisionId
AnswerNotAvailable
MissingDecisionSecret(DecisionId)
InvalidDecisionAnswer
InvalidDecisionOwner
InvalidDecisionStatus
SerializationError
WasmInitializationError(String)
WasmExecutionError(String)
WasmMemoryOverflow
InvalidCheckpoint
DuplicatedInitialization
RandomnessNotRevealed
RandomStateNotFound(RandomId)
HandleError(HandleError)
InvalidRecipientSlotParams
TransferWithoutSettle
Trait Implementations§
source§impl BorshDeserialize for Errorwhere
String: BorshDeserialize,
usize: BorshDeserialize,
u32: BorshDeserialize,
DecisionId: BorshDeserialize,
RandomId: BorshDeserialize,
HandleError: BorshDeserialize,
impl BorshDeserialize for Errorwhere String: BorshDeserialize, usize: BorshDeserialize, u32: BorshDeserialize, DecisionId: BorshDeserialize, RandomId: BorshDeserialize, HandleError: BorshDeserialize,
source§impl BorshSerialize for Errorwhere
String: BorshSerialize,
usize: BorshSerialize,
u32: BorshSerialize,
DecisionId: BorshSerialize,
RandomId: BorshSerialize,
HandleError: BorshSerialize,
impl BorshSerialize for Errorwhere String: BorshSerialize, usize: BorshSerialize, u32: BorshSerialize, DecisionId: BorshSerialize, RandomId: BorshSerialize, HandleError: BorshSerialize,
source§impl Error for Error
impl Error for Error
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<Error> for HandleError
impl From<Error> for HandleError
source§impl From<HandleError> for Error
impl From<HandleError> for Error
source§fn from(value: HandleError) -> Self
fn from(value: HandleError) -> Self
Converts to this type from the input type.
source§impl PartialEq<Error> for Error
impl PartialEq<Error> for Error
impl Eq for Error
impl StructuralEq for Error
impl StructuralPartialEq for Error
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more