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,
SettleWithoutCheckpoint,
}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
SettleWithoutCheckpoint
Trait Implementations§
Source§impl BorshDeserialize for Error
impl BorshDeserialize for Error
Source§impl BorshSerialize for Error
impl BorshSerialize for Error
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)>
Returns 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.
impl Eq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
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