Module spacetraders::client [−][src]
The game module wraps the interactions between the client and the server
Structs
Client | A SpaceTraders client that is associated to a specific username |
SpaceTradersClient | SpaceTradersClient wraps the actual reqwest client and adds rate-limiting support |
Functions
claim_username | Claim a username and get a token |
get_http_client | Get a rate-limited http client that is safe to use across threads and won’t break rate-limiting |
Type Definitions
HttpClient | HttpClient is a thread-safe rate-limited space traders client |