summaryrefslogtreecommitdiff
path: root/crates/tor-linkspec/src/ids
Commit message (Collapse)AuthorAgeFilesLines
* linkspec: Add test for lookup on no-ids.Nick Mathewson2022-11-281-0/+1
|
* Add a test for ByRelayIds::remove_by_all_idsNick Mathewson2022-11-281-2/+21
|
* Remove allow() for a false-positive warn on Rust 1.56.Nick Mathewson2022-11-101-3/+0
|
* ByRelayIds: Add additional accessor functions.Nick Mathewson2022-10-251-0/+51
| | | | | These are the ones that turned out to be necessary while converting guard samples to use ByRelayIds.
* linkspec: Add ByRelayIds::remove_exact.Nick Mathewson2022-10-181-0/+65
| | | | | We need a function to remove an entry if it appears with _exactly_ the same relay Ids, but not otherwise. This method will do that.
* linkspec: Add an "all_overlapping" accessor to ByRelayIds.Nick Mathewson2022-10-181-0/+112
| | | | | | | Also, add a few tests for this and the other accessors. We'll need this accessor to find whether we have any channels to _any_ of the identities that we're trying to connect to.
* Write tests for RelayIdSet.Nick Mathewson2022-10-151-0/+119
|
* tor-linkspec: ByRelayIds<> type to hold a set of HasRelayIdsNick Mathewson2022-10-041-0/+60
| | | | | This is based on the type generated with n_key_set, with a couple of extra methods to take advantage of RelayId and RelayIdRef.
* Introduce a RelayIdSet and use it in place of HashSet<RelayId>.Nick Mathewson2022-08-101-0/+135
This makes lookups a little more efficient. I do with that HashSet just supported this use-case, but for now this seems our best option.