pub struct GnsGlobal(_);
Expand description

This is an empty type used to wrap the initialization/destruction of the low-level GameNetworkingSockets. On construction

Implementations

Try to acquire the GnsGlobal instance. This function will succeed only if there is no instance already created. The result might be dropped/recreated safely though.

If successful, a call to sys::GameNetworkingSockets_Init has been made. Note that the drop implementation ensure that sys::GameNetworkingSockets_Kill is called.

Trait Implementations

Executes the destructor for this type. 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

Returns the argument unchanged.

Calls U::from(self).

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

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.