diff options
author | Isis Lovecruft <isis@torproject.org> | 2018-03-21 01:07:18 +0000 |
---|---|---|
committer | Isis Lovecruft <isis@torproject.org> | 2018-04-02 19:20:12 +0000 |
commit | 811178434eae16fd673b67ebda06b630aa27dec4 (patch) | |
tree | bc437451bba4995e6a2344d56bff1266a127968f /INSTALL | |
parent | 9925d2e68709aa7346f4c5bc98ea1349df6741f3 (diff) | |
download | tor-811178434eae16fd673b67ebda06b630aa27dec4.tar.gz tor-811178434eae16fd673b67ebda06b630aa27dec4.zip |
rust: Add new protover::UnknownProtocol type.
* ADD new type, protover::UnknownProtocol, so that we have greater type safety
and our protover functionality which works with unsanitised protocol names is
more clearly demarcated.
* REFACTOR protover::Proto, renaming it protover::Protocol to mirror the new
protover::UnknownProtocol type name.
* ADD a utility conversion of `impl From<Protocol> for UnknownProtocol` so that
we can easily with known protocols and unknown protocols simultaneously
(e.g. doing comparisons, checking their version numbers), while not allowing
UnknownProtocols to be accidentally used in functions which should only take
Protocols.
* FIXES part of #24031: https://bugs.torproject.org/24031
Diffstat (limited to 'INSTALL')
0 files changed, 0 insertions, 0 deletions