1
0
mirror of https://github.com/pcvolkmer/arsnova-client.git synced 2025-07-03 07:02:55 +00:00

feat: apply typestate pattern to client

This prevents using the client without using guest login and without token.
This commit is contained in:
2023-12-20 14:36:45 +01:00
parent b116457796
commit 9cdd68abed
3 changed files with 30 additions and 11 deletions

View File

@ -10,7 +10,7 @@ Create a client using and request guest login.
```rust
let client = Client::new("https://ars.particify.de/api").expect("client created");
client.guest_login().await;
let client = client.guest_login().await.expect("logged in");
```
### Request room information