Releases: MrGunflame/ts3-rs
Releases · MrGunflame/ts3-rs
v0.4.1
v0.4.0
- Moved request and response types their respective (
request
/response
) module. Types shared between both requests and responses are in theshared
module. - Added dedicated types for
ApiKeyId
,ChannelGroupId
,ChannelId
,ClientDatabaseId
,ClientId
,ServerGroupId
andServerId
. All id types now useu64
as their default (instead of the previous mix ofu64
andusize
). - Renamed
CommandBuilder
toRequestBuilder
. - Hide the internals of a request within the
Request
type instead of exposing them in form of aString
. - Renamed
RawResp
toResponse
and hide the internals. The fields of a result can be accessed via theEntry
type.Response
decodes the same asRawResp
did. - Renamed
Serialize
trait toEncode
, renamed theserialize
method toencode
. - Reworked the
Decode
trait slightly:- Removed the generic argument;
Decode
should always returnSelf
, and does so now. - Added an
Error
type should is returned instead of the previousBox<dyn Error>
.
- Removed the generic argument;
- Removed
Vec
'sDecode
implementation. List types now use the dedicatedList
type. - Renamed
ReasonID
toReasonId
. - Added an
error
method toEventHandler
that is called when an error occurs while handling an event. The default implementation writes the error to stdout. - Removed the
client
module.Client
andasync_trait
can now be found in the root. Other types have been moved to their appropriate (request
/response
) module. - Unified the
Error
,DecodeError
andParseError
types into a singleError
type. Made theError
internals private. - Renamed
Client::new
toClient::connect
. - Updated the types for many fields/arguments to be more consistent and correct.