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_PORTcan’t be parsed as au16. - A connection cannot be established with an Agones SDK server
- The handshake takes longer than the specified
handshake_timeoutduration
Marks the Game Server as ready to receive connections
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
Auto Trait Implementations
impl !RefUnwindSafe for Sdk
impl !UnwindSafe for Sdk
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
Wrap the input message T in a tonic::Request