rust-gamedig/crates/lib/examples
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
..
generic.rs chore: Tidy up some out of place types (#160) 2024-01-02 00:17:43 +02:00
minecraft.rs chore: Move minecraft protocol to games. (#153) 2023-11-18 19:44:09 +02:00
teamfortress2.rs refator: copy cli into mono 2023-10-16 23:20:47 +01:00
valve_master_server_query.rs refator: copy cli into mono 2023-10-16 23:20:47 +01:00
valve_protocol_query.rs feat(protocols): Add more control over gathering additional information (#180) 2024-01-22 13:36:17 +02:00