Skip to content

Releases: MrGunflame/ts3-rs

v0.4.1

01 May 16:33
a7fceaa
Compare
Choose a tag to compare
  • Fixed a compilation error that occurred when building ts3 without the upstream crate requiring tokios rt features (#4).

v0.4.0

02 Apr 21:26
f33cb24
Compare
Choose a tag to compare
  • Moved request and response types their respective (request/response) module. Types shared between both requests and responses are in the shared module.
  • Added dedicated types for ApiKeyId, ChannelGroupId, ChannelId, ClientDatabaseId, ClientId, ServerGroupId and ServerId. All id types now use u64 as their default (instead of the previous mix of u64 and usize).
  • Renamed CommandBuilder to RequestBuilder.
  • Hide the internals of a request within the Request type instead of exposing them in form of a String.
  • Renamed RawResp to Response and hide the internals. The fields of a result can be accessed via the Entry type. Response decodes the same as RawResp did.
  • Renamed Serialize trait to Encode, renamed the serialize method to encode.
  • Reworked the Decode trait slightly:
    • Removed the generic argument; Decode should always return Self, and does so now.
    • Added an Error type should is returned instead of the previous Box<dyn Error>.
  • Removed Vec's Decode implementation. List types now use the dedicated List type.
  • Renamed ReasonID to ReasonId.
  • Added an error method to EventHandler that is called when an error occurs while handling an event. The default implementation writes the error to stdout.
  • Removed the client module. Client and async_trait can now be found in the root. Other types have been moved to their appropriate (request/response) module.
  • Unified the Error, DecodeError and ParseError types into a single Error type. Made the Error internals private.
  • Renamed Client::new to Client::connect.
  • Updated the types for many fields/arguments to be more consistent and correct.