-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
queue/qbuf: remove lifetime requirement on QBuffer
Similarly to what the previous commit did for some traits, remove the lifetime generic parameter from QBuffer, and make the reference type generic. This will allow us to use either direct references to the providing queue (which guarantees at compile-time that the queue cannot be mutated while a buffer is being prepared), or reference-counter ones like Rc or Arc (which gives us more freedom as for how long we can keep a QBuffer alive, but require runtime-checks on the provided queue before it can be mutated).
- Loading branch information
Showing
3 changed files
with
57 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters