aboutsummaryrefslogtreecommitdiff
path: root/crates/tor-async-utils/src/sink_try_send.rs
Commit message (Collapse)AuthorAgeFilesLines
* maint: Run maint/add_warning to deny string slicesClara Engler2026-06-091-0/+1
| | | | | | | | | | | | This commit executes maint/add_warning with the just added change to deny string slices except in tests. I recommend auditing this by checking out the previous commit followed by running the script yourself and then verifying that the diff is identical to this commit. This commit makes cargo clippy fail. We will add exceptions in the next commit.
* Fix name of clippy lint to unchecked_time_subtraction (2)Ian Jackson2025-11-061-1/+1
| | | | Run maint/add_warning
* Switch Cargo.toml files to edition 2024.Nick Mathewson2025-08-071-2/+2
| | | | | | | | | | | | | | First, run ``` git grep -l "^edition =" | xargs perl -i -pe 's/^edition *=.*/edition = "2024"/;' ``` Second, manually verify that all Cargo.toml files have changed, and nothing else has changed. Third, run cargo fmt again.
* tor-async-utils: impl `SinkTrySend` for `mpsc::UnboundedSender`Steven Engler2025-08-051-0/+19
|
* Fix errors from rustdoc nightly.Nick Mathewson2025-08-051-1/+1
|
* tor-async-utils: SinkTrySend: Fix a doc commentIan Jackson2024-10-021-1/+1
| | | | | | | | This was a copypaste error, resulting in a statement with the wrong sense. As per https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/2468#note_3086961
* tor-async-utils: Avoid needless nesting of ErasedSinkTrySendErrorIan Jackson2024-10-011-1/+22
|
* tor-async-utils: Provide tests for ErasedSinkTrySendErrorIan Jackson2024-10-011-0/+67
|
* tor-async-utils: Implement SinkTrySend for mpsc::SenderIan Jackson2024-10-011-0/+137
|
* tor-async-utils: Provide new SinkTrySend traitIan Jackson2024-10-011-0/+54
This is the method try_send from mpsc::channel::Sender. We want to be able to replace that type in tor-circmgr with a memquota wrapper, so the call needs to be a trait method. This API is deceptively simple. Implementing it will involve more support machinery for error handling.