pub enum Error {
Show 73 variants IoError(BacktraceError), SendError, EmailAndOrPasswordInvalid, RequestedPacketSizeIsInvalid { max: u32, was: u32, }, NoFreeSlots, FailedToFetchBlock, Timeout, ErrorCode(u8Option<&'static str>), ServerError { exception_type: String, message: String, stack_trace: String, }, UnknownMessageType, InvalidHash, InvalidHostState, YouBrokeSomethingBro, InvalidChatMessage, CannotSendMessageIntoAnotherUniverseGroup, InvalidControllableInfo(u8), InvalidCargoItem(u8), InvalidCrystalKind(u8), CannotRenameCrystalKind(CrystalKind), YouCanOnlyRenameCrystalsNotInUse(String), YouAreNotTheCrystalMaster(String), UnknownUnitType(u8), PoisonError, ConnectorNotAvailable, ControllableNotAvailable, TournamentNotAvailable, ScoresNotAvailable, PlayerNotAvailable, PlayerNotInUniverseGroup, VectorNotAvailable, TeamNotAvailable, ControllableInfoNotAvailable, InvalidMessage, InvalidMessageList, InvalidMessageAtIndex(u8), CantSendMessageToInactivePlayer, MissingPlayer(Backtraceu16), InvalidFromDegree(f32), InvalidToDegree(f32), InvalidRange(f32), InvalidEvent(u8), InvalidDifficulty(u8), InvalidPerformanceRequirement(u8), InvalidTournamentStage(u8), InvalidTournamentSet(u8), InvalidControllable(u8), InvalidName, InvalidClass, InvalidDirection, InvalidValue(f32), AccessFromWrongThreadAllowedOnly(ThreadId), TickIsGone, VectorIsDamaged, ScanRequestExceedsScannerCount { got: u8, max: u8, }, TooManySubDirections(usize), InvalidDestination, InvalidEnergyValue(f32), InvalidParticlesValue(f32), InvalidIonsValue(f32), InvalidDirectionValue(f32), InvalidRangeValue(f32), InvalidForceValue(f32), InvalidCrystalName(String), InvalidUniverse(u8), InvalidUniverseGroup(u16), InvalidTeam(u8), PendingShutdown, PlayerAlreadyInAnotherUniverseGroup(u16), StillOpenFlowControlsInUniverseGroup(u16), WithReason(String), NotCrystalCargoItem(Backtrace), NotControllableShip(Backtrace), UniverseNotInUniverseGroup,
}

Variants

IoError(BacktraceError)

SendError

EmailAndOrPasswordInvalid

RequestedPacketSizeIsInvalid

Fields

max: u32
was: u32

NoFreeSlots

FailedToFetchBlock

Timeout

ErrorCode(u8Option<&'static str>)

ServerError

Fields

exception_type: String
message: String
stack_trace: String

UnknownMessageType

InvalidHash

InvalidHostState

YouBrokeSomethingBro

InvalidChatMessage

CannotSendMessageIntoAnotherUniverseGroup

InvalidControllableInfo(u8)

InvalidCargoItem(u8)

InvalidCrystalKind(u8)

CannotRenameCrystalKind(CrystalKind)

YouCanOnlyRenameCrystalsNotInUse(String)

YouAreNotTheCrystalMaster(String)

UnknownUnitType(u8)

PoisonError

ConnectorNotAvailable

ControllableNotAvailable

TournamentNotAvailable

ScoresNotAvailable

PlayerNotAvailable

PlayerNotInUniverseGroup

VectorNotAvailable

TeamNotAvailable

ControllableInfoNotAvailable

InvalidMessage

InvalidMessageList

InvalidMessageAtIndex(u8)

CantSendMessageToInactivePlayer

MissingPlayer(Backtraceu16)

InvalidFromDegree(f32)

InvalidToDegree(f32)

InvalidRange(f32)

InvalidEvent(u8)

InvalidDifficulty(u8)

InvalidPerformanceRequirement(u8)

InvalidTournamentStage(u8)

InvalidTournamentSet(u8)

InvalidControllable(u8)

InvalidName

InvalidClass

InvalidDirection

InvalidValue(f32)

AccessFromWrongThreadAllowedOnly(ThreadId)

TickIsGone

VectorIsDamaged

ScanRequestExceedsScannerCount

Fields

got: u8
max: u8

TooManySubDirections(usize)

InvalidDestination

InvalidEnergyValue(f32)

InvalidParticlesValue(f32)

InvalidIonsValue(f32)

InvalidDirectionValue(f32)

InvalidRangeValue(f32)

InvalidForceValue(f32)

InvalidCrystalName(String)

InvalidUniverse(u8)

InvalidUniverseGroup(u16)

InvalidTeam(u8)

PendingShutdown

PlayerAlreadyInAnotherUniverseGroup(u16)

StillOpenFlowControlsInUniverseGroup(u16)

WithReason(String)

NotCrystalCargoItem(Backtrace)

NotControllableShip(Backtrace)

UniverseNotInUniverseGroup

Implementations

Trait Implementations

Formats the value using the given formatter. Read more
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.