gamedig / rust-gamedig

Game Server Query Library.
https://crates.io/crates/gamedig
MIT License
38 stars 11 forks source link

[Generic] Add struct for all extra request settings #93

Closed Douile closed 12 months ago

Douile commented 12 months ago

Adds a new struct ExtraRequestSettings that contains all possible extra settings for all protocols, and can be implicitly converted with .into() into each protocol's extra settings type.

This is then used in a new query method query_with_timeout_and_extra_settings() that passes the object on to the selected protocol.

This also updates the generic example to set some of these generic settings so that it can be used for certain queries like "mc.hypixel.net".

Closes #86

Douile commented 12 months ago

Think actions broken rn: https://www.githubstatus.com/incidents/tqrmcdmghldw

CosminPerRam commented 12 months ago

Thanks a lot, I was just thinking yesterday about working on this, seems you got ahead haha. Will merge once Actions come back and validate everything.

Douile commented 12 months ago

Thanks a lot, I was just thinking yesterday about working on this, seems you got ahead haha. Will merge once Actions come back and validate everything.

Had to get in before the next release :)