tor/src/rust/protover
Isis Lovecruft 60daaa68b1
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
2018-04-02 19:27:51 +00:00
..
tests Add missing copyright/license statements on all .rs files 2017-10-27 10:02:08 -04:00
Cargo.toml maint: Update Rust libc dependency from 0.2.22 to 0.2.39. 2018-03-21 17:04:28 -04:00
errors.rs rust: Implement error types for Rust protover implementation. 2018-04-02 19:24:32 +00:00
ffi.rs rust: Add new protover::UnknownProtocol type. 2018-04-02 19:27:51 +00:00
lib.rs rust: Implement more memory-efficient protover datatype. 2018-04-02 19:26:26 +00:00
protoset.rs rust: Implement more memory-efficient protover datatype. 2018-04-02 19:26:26 +00:00
protover.rs rust: Add new protover::UnknownProtocol type. 2018-04-02 19:27:51 +00:00