Struct rymder::Sdk[][src]

pub struct Sdk { /* fields omitted */ }
Expand description

SDK is an instance of the Agones SDK

Implementations

Starts a new SDK instance, and connects to localhost on the port specified or else falls back to the AGONES_SDK_GRPC_PORT environment variable, or defaults to 9357.

The connect_timeout applies to the time it takes to perform the initial connection as well as the handshake with the agones sidecar.

Errors

  • The port specified in AGONES_SDK_GRPC_PORT can’t be parsed as a u16.
  • A connection cannot be established with an Agones SDK server
  • The handshake takes longer than the specified handshake_timeout duration

Marks the Game Server as ready to receive connections

Allocate the Game Server

Marks the Game Server as ready to shutdown

Returns a tokio::sync::mpsc::Sender that will emit a health check every time a message is sent on the channel.

Set a Label value on the backing Game Server record that is stored in Kubernetes

Set an Annotation value on the backing Game Server record that is stored in Kubernetes

Returns most of the backing Game Server configuration and Status

Reserve marks the Game Server as Reserved for a given duration, at which point it will return the Game Server to a Ready state.

Note that the smallest reserve duration is 1 second and is limited to second resolution.

Watch the backing Game Server configuration on updated

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Wrap the input message T in a tonic::Request

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.