pub struct LinkSpecType(/* private fields */);
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 HasMemoryCostStructural for LinkSpecType
impl HasMemoryCostStructural for LinkSpecType
Source§fn indirect_memory_cost(&self, et: EnabledToken) -> usize
fn indirect_memory_cost(&self, et: EnabledToken) -> usize
Memory cost of data stored out-of-line Read more
Source§impl PartialEq for LinkSpecType
impl PartialEq for LinkSpecType
impl Copy for LinkSpecType
impl Eq for LinkSpecType
impl StructuralPartialEq for LinkSpecType
Auto Trait Implementations§
impl Freeze for LinkSpecType
impl RefUnwindSafe for LinkSpecType
impl Send for LinkSpecType
impl Sync for LinkSpecType
impl Unpin for LinkSpecType
impl UnwindSafe for LinkSpecType
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§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 Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<T> HasMemoryCost for Twhere
T: HasMemoryCostStructural,
impl<T> HasMemoryCost for Twhere
T: HasMemoryCostStructural,
Source§fn memory_cost(&self, et: EnabledToken) -> usize
fn memory_cost(&self, et: EnabledToken) -> usize
Returns the memory cost of
self
, in bytes Read moreSource§impl<T> HasTypedMemoryCost<T> for Twhere
T: HasMemoryCost,
impl<T> HasTypedMemoryCost<T> for Twhere
T: HasMemoryCost,
Source§fn typed_memory_cost(&self, enabled: EnabledToken) -> TypedMemoryCost<T>
fn typed_memory_cost(&self, enabled: EnabledToken) -> TypedMemoryCost<T>
The cost, as a
TypedMemoryCost<T>
rather than a raw usize
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more