summaryrefslogtreecommitdiff
path: root/crates/tor-memquota/src/mtracker.rs
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'memquota-typed' into 'main'Ian Jackson2024-07-241-9/+19
|\ | | | | | | | | tor-memquota: HasMemoryCost trait, and type-safe methods See merge request tpo/core/arti!2282
| * tor-memquota: Expose some test utilities for the rest of the crateIan Jackson2024-07-241-1/+1
| |
| * tor-memquota: Improve register_participant_withIan Jackson2024-07-241-8/+8
| | | | | | | | | | Now the constructor is able to return other data to the caller, passing it through the mtracker machinery.
| * tor-memquota: Add get_used_approx accessorIan Jackson2024-07-241-0/+10
| | | | | | | | | | I just want this for a test right now, bui it seems like it would be good to expose it publicly.
* | tor-memquota: destroy_participant: Clarify "no longer useable"Ian Jackson2024-07-241-1/+2
| | | | | | | | | | As per https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/2281#note_3051105
* | tor-memquota: Provide Participant::destroy_participantIan Jackson2024-07-241-0/+28
|/ | | | The stream wrapper is going to want this.
* Rename tor-memtrack to tor-memquotaIan Jackson2024-04-291-0/+1047