Struct tor_cell::chancell::msg::HandshakeType
source · pub struct HandshakeType(/* private fields */);
Expand description
Handshake type, corresponding to HTYPE
in
tor-spec.
Implementations§
source§impl HandshakeType
impl HandshakeType
sourcepub const TAP: HandshakeType = _
pub const TAP: HandshakeType = _
TAP – the original Tor handshake.
sourcepub const NTOR: HandshakeType = _
pub const NTOR: HandshakeType = _
ntor – the ntor+curve25519+sha256 handshake.
sourcepub const NTOR_V3: HandshakeType = _
pub const NTOR_V3: HandshakeType = _
ntor-v3 – ntor extended with extra data.
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 HandshakeType
impl Clone for HandshakeType
source§fn clone(&self) -> HandshakeType
fn clone(&self) -> HandshakeType
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 HandshakeType
impl Debug for HandshakeType
source§impl Display for HandshakeType
impl Display for HandshakeType
source§impl From<HandshakeType> for u16
impl From<HandshakeType> for u16
source§fn from(val: HandshakeType) -> u16
fn from(val: HandshakeType) -> u16
Converts to this type from the input type.
source§impl From<u16> for HandshakeType
impl From<u16> for HandshakeType
source§fn from(num: u16) -> HandshakeType
fn from(num: u16) -> HandshakeType
Converts to this type from the input type.
source§impl PartialEq for HandshakeType
impl PartialEq for HandshakeType
source§fn eq(&self, other: &HandshakeType) -> bool
fn eq(&self, other: &HandshakeType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for HandshakeType
impl Eq for HandshakeType
impl StructuralPartialEq for HandshakeType
Auto Trait Implementations§
impl Freeze for HandshakeType
impl RefUnwindSafe for HandshakeType
impl Send for HandshakeType
impl Sync for HandshakeType
impl Unpin for HandshakeType
impl UnwindSafe for HandshakeType
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 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.§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