Tracks: Add TypeMap to Handles.

Adds a shared TypeMap per TrackHandle. This should greatly simplify the user experience for attaching additional per-track state which the driver does not care for.
This commit is contained in:
Kyle Simpson
2021-01-02 23:43:28 +00:00
parent 873458d288
commit d42e09f72b
4 changed files with 47 additions and 9 deletions

View File

@@ -66,6 +66,8 @@ pub use audiopus::{self as opus, Bitrate};
pub use discortp as packet;
#[cfg(feature = "driver")]
pub use serenity_voice_model as model;
#[cfg(feature = "driver")]
pub use typemap_rev as typemap;
#[cfg(test)]
use utils as test_utils;