Enum tor_netdoc::doc::routerdesc::RelayPlatform
source · [−]#[non_exhaustive]
pub enum RelayPlatform {
Tor(TorVersion, String),
Other(String),
}
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
sourceimpl Clone for RelayPlatform
impl Clone for RelayPlatform
sourcefn clone(&self) -> RelayPlatform
fn clone(&self) -> RelayPlatform
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for RelayPlatform
impl Debug for RelayPlatform
sourceimpl FromStr for RelayPlatform
impl FromStr for RelayPlatform
sourceimpl PartialEq<RelayPlatform> for RelayPlatform
impl PartialEq<RelayPlatform> for RelayPlatform
sourcefn eq(&self, other: &RelayPlatform) -> bool
fn eq(&self, other: &RelayPlatform) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &RelayPlatform) -> bool
fn ne(&self, other: &RelayPlatform) -> bool
This method tests for !=
.
impl Eq for RelayPlatform
impl StructuralEq for RelayPlatform
impl StructuralPartialEq for RelayPlatform
Auto Trait Implementations
impl RefUnwindSafe for RelayPlatform
impl Send for RelayPlatform
impl Sync for RelayPlatform
impl Unpin for RelayPlatform
impl UnwindSafe for RelayPlatform
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more