Crate de_lobby_client
source ·Expand description
This crate implements Bevy based client to the DE lobby server.
Send RequestEvent
events to make requests and read ResponseEvent
events to receive request responses.
The client is automatically authenticated when [de_lobby_model::Token
]
response is received from any endpoint, thus it is sufficient to send
RequestEvent<SignInRequest>
or RequestEvent<SignUpRequest>
.
Use Authentication
resource to obtain current authentication state and
detect its changes.
Modules§
Structs§
- Lobby client authentication object. It should be used to get current authentication state.
- Use this event to make a request the Lobby API. Response the request will delivered as
ResponseEvent
. - Event corresponding to a finished Lobby API request which might have failed or succeeded.
Traits§
Type Aliases§
Result<T, Error>