pub enum GameServerState {
PortAllocation,
Creating,
Starting,
Scheduled,
RequestReady,
Ready,
Shutdown,
Error,
Unhealthy,
Reserved,
Allocated,
}
Variants
PortAllocation
A dynamically allocating GameServer is being created, an open port needs to be allocated
Creating
The Pod for the GameServer is being created.
Starting
The Pods for the GameServer are being created but are not yet Scheduled
Scheduled
We have determined that the Pod has been scheduled in the cluster – basically, we have a NodeName
RequestReady
The GameServer has declared that it is ready
Ready
The GameServer is ready to take connections from game clients.
Shutdown
The GameServer has shutdown and everything needs to be deleted from the cluster
Error
Something has gone wrong with the Gameserver and it cannot be resolved
Unhealthy
The GameServer has failed its health checks
Reserved
The GameServer is reserved and therefore can be allocated but not removed
Allocated
The GameServer has been allocated to a session
Trait Implementations
sourceimpl Clone for GameServerState
impl Clone for GameServerState
sourcefn clone(&self) -> GameServerState
fn clone(&self) -> GameServerState
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for GameServerState
impl Debug for GameServerState
sourceimpl<'de> Deserialize<'de> for GameServerState
impl<'de> Deserialize<'de> for GameServerState
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl JsonSchema for GameServerState
impl JsonSchema for GameServerState
sourcefn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
sourcefn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moresourceimpl Serialize for GameServerState
impl Serialize for GameServerState
Auto Trait Implementations
impl RefUnwindSafe for GameServerState
impl Send for GameServerState
impl Sync for GameServerState
impl Unpin for GameServerState
impl UnwindSafe for GameServerState
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
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request