tor_netdoc/types.rs
1//! Various types that can occur in parsed network documents.
2//!
3//! Some of the types are parsing adapters: transparent newtypes
4//! that can be used for type-driven parsing in netdocs.
5//! These are needed (rather than using the underlying value type)
6//! in cases where network documents have different syntaxes for the same thing.
7//!
8//! NOTE: Several of these modules may eventually move elsewhere,
9//! or become their own crates.
10
11pub mod family;
12pub(crate) mod misc;
13pub mod policy;
14pub mod version;
15
16pub use misc::{Nickname, NotPresent};
17
18pub use misc::B64;
19pub use misc::{Base64Fingerprint, Fingerprint, Ignored};
20pub use misc::{DigestName, IdentifiedDigest};
21pub use misc::{Iso8601TimeNoSp, Iso8601TimeSp};
22
23use crate::NormalItemArgument;
24
25impl NormalItemArgument for std::net::Ipv4Addr {}
26impl NormalItemArgument for std::net::SocketAddr {}