Struct tor_cell::chancell::msg::Authenticate
source · pub struct Authenticate { /* private fields */ }
Expand description
Part of negotiation: sent by initiators to responders.
The Authenticate cell proves the initiator’s identity to the responder, even if TLS client authentication was not used.
Clients do not use this.
Implementations§
Trait Implementations§
source§impl Body for Authenticate
impl Body for Authenticate
source§fn encode_onto<W: Writer + ?Sized>(self, w: &mut W) -> EncodeResult<()>
fn encode_onto<W: Writer + ?Sized>(self, w: &mut W) -> EncodeResult<()>
Consume this message and encode its body onto
w
. Read moresource§fn decode_from_reader(r: &mut Reader<'_>) -> Result<Self>
fn decode_from_reader(r: &mut Reader<'_>) -> Result<Self>
Decode a channel cell body from a provided reader.
source§impl ChanMsg for Authenticate
impl ChanMsg for Authenticate
source§fn encode_onto<W: Writer + ?Sized>(self, w: &mut W) -> EncodeResult<()>
fn encode_onto<W: Writer + ?Sized>(self, w: &mut W) -> EncodeResult<()>
Write the body of this message (not including length or command).
source§impl Clone for Authenticate
impl Clone for Authenticate
source§fn clone(&self) -> Authenticate
fn clone(&self) -> Authenticate
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 Authenticate
impl Debug for Authenticate
source§impl From<Authenticate> for AnyChanMsg
impl From<Authenticate> for AnyChanMsg
source§fn from(m: Authenticate) -> AnyChanMsg
fn from(m: Authenticate) -> AnyChanMsg
Converts to this type from the input type.
source§impl From<Authenticate> for AnyChanCell
impl From<Authenticate> for AnyChanCell
source§fn from(body: Authenticate) -> AnyChanCell
fn from(body: Authenticate) -> AnyChanCell
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Authenticate
impl RefUnwindSafe for Authenticate
impl Send for Authenticate
impl Sync for Authenticate
impl Unpin for Authenticate
impl UnwindSafe for Authenticate
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§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