rust-gamedig/crates/lib/src
Tom 89ed19f089
feat(protocols): Add more control over gathering additional information (#180)
* protocols: Add more control over gathering additional information

Adds GatherToggle which allows choosing the behaviour for how the query
handles fetching additional information. The choices are:
- DontGather - Don't attempt to fetch information
- AttemptGather - Try to fetch the information but ignore errors
- Required - Try to fetch information and fail if it errors

A handy macro was also added to utils to dispatch additional queries
based on a GatherToggle value.

* Add/Update badge

* protocols: Improve GatherToggle enum names

Co-Authored-By: Cain <75994858+cainthebest@users.noreply.github.com>
Co-Authored-By: CosminPerRam <cosmin.p@live.com>

* Add/Update badge

---------

Co-authored-by: GitHub Action <action@github.com>
Co-authored-by: Cain <75994858+cainthebest@users.noreply.github.com>
Co-authored-by: CosminPerRam <cosmin.p@live.com>
2024-01-22 13:36:17 +02:00
..
errors fix: remove unwrapping in an assert 2023-12-10 19:46:12 +02:00
games feat(protocols): Add more control over gathering additional information (#180) 2024-01-22 13:36:17 +02:00
protocols feat(protocols): Add more control over gathering additional information (#180) 2024-01-22 13:36:17 +02:00
services chore: replace the closure with the method itself 2023-12-11 03:19:51 +02:00
buffer.rs Add support for Mindustry (#178) 2024-01-17 13:53:40 +00:00
lib.rs chore: Tidy up some out of place types (#160) 2024-01-02 00:17:43 +02:00
socket.rs chore: use map_or_else instead of if let Some() ... else 2023-12-11 03:41:41 +02:00
utils.rs feat(protocols): Add more control over gathering additional information (#180) 2024-01-22 13:36:17 +02:00