Struct tor_linkspec::LinkSpecType
source · pub struct LinkSpecType(_);Expand description
A numeric identifier for the type of a LinkSpec.
Implementations§
source§impl LinkSpecType
impl LinkSpecType
sourcepub const ORPORT_V4: LinkSpecType = _
pub const ORPORT_V4: LinkSpecType = _
Indicates an IPv4 ORPORT link specifier.
sourcepub const ORPORT_V6: LinkSpecType = _
pub const ORPORT_V6: LinkSpecType = _
Indicates an IPv6 ORPORT link specifier.
sourcepub const RSAID: LinkSpecType = _
pub const RSAID: LinkSpecType = _
Indicates an RSA ID fingerprint link specifier
sourcepub const ED25519ID: LinkSpecType = _
pub const ED25519ID: LinkSpecType = _
Indicates an Ed25519 link specifier
sourcepub fn is_recognized(self) -> bool
pub fn is_recognized(self) -> bool
Return true if this value is one that we recognize.
Trait Implementations§
source§impl Clone for LinkSpecType
impl Clone for LinkSpecType
source§fn clone(&self) -> LinkSpecType
fn clone(&self) -> LinkSpecType
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 moresource§impl Debug for LinkSpecType
impl Debug for LinkSpecType
source§impl Display for LinkSpecType
impl Display for LinkSpecType
source§impl From<LinkSpecType> for u8
impl From<LinkSpecType> for u8
source§fn from(val: LinkSpecType) -> u8
fn from(val: LinkSpecType) -> u8
Converts to this type from the input type.
source§impl From<u8> for LinkSpecType
impl From<u8> for LinkSpecType
source§fn from(num: u8) -> LinkSpecType
fn from(num: u8) -> LinkSpecType
Converts to this type from the input type.
source§impl PartialEq<LinkSpecType> for LinkSpecType
impl PartialEq<LinkSpecType> for LinkSpecType
source§fn eq(&self, other: &LinkSpecType) -> bool
fn eq(&self, other: &LinkSpecType) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for LinkSpecType
impl Eq for LinkSpecType
impl StructuralEq for LinkSpecType
impl StructuralPartialEq for LinkSpecType
Auto Trait Implementations§
impl RefUnwindSafe for LinkSpecType
impl Send for LinkSpecType
impl Sync for LinkSpecType
impl Unpin for LinkSpecType
impl UnwindSafe for LinkSpecType
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.