Enum tor_netdoc::doc::routerdesc::RelayPlatform
source · #[non_exhaustive]
pub enum RelayPlatform {
Tor(TorVersion, String),
Other(String),
}
Available on crate feature
routerdesc
only.Expand description
Description of the software a relay is running.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Tor(TorVersion, String)
Software advertised to be some version of Tor, on some platform.
Other(String)
Software not advertised to be Tor.
Trait Implementations§
source§impl Clone for RelayPlatform
impl Clone for RelayPlatform
source§fn clone(&self) -> RelayPlatform
fn clone(&self) -> RelayPlatform
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more