Enum flattiverse_connector::Error
source · pub enum Error {
Show 73 variants
IoError(Backtrace, Error),
SendError,
EmailAndOrPasswordInvalid,
RequestedPacketSizeIsInvalid {
max: u32,
was: u32,
},
NoFreeSlots,
FailedToFetchBlock,
Timeout,
ErrorCode(u8, Option<&'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(Backtrace, u16),
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(Backtrace, Error)
SendError
EmailAndOrPasswordInvalid
RequestedPacketSizeIsInvalid
NoFreeSlots
FailedToFetchBlock
Timeout
ErrorCode(u8, Option<&'static str>)
ServerError
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(Backtrace, u16)
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
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
sourceimpl Error
impl Error
pub fn missing_player(player: u16) -> Error
pub fn not_crystal_cargo_item() -> Error
pub fn not_controllable_ship() -> Error
pub fn error_code(code: u8) -> Error
Trait Implementations
sourceimpl<T> From<PoisonError<T>> for Error
impl<T> From<PoisonError<T>> for Error
sourcefn from(_: PoisonError<T>) -> Self
fn from(_: PoisonError<T>) -> Self
Converts to this type from the input type.
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more