Struct tor_cell::chancell::msg::CreateFast
source · pub struct CreateFast { /* private fields */ }Expand description
A CreateFast message creates a circuit using no public-key crypto.
CreateFast is safe only when used on an already-secure TLS connection. It can only be used for the first hop of a circuit.
Relays reply to a CreateFast message with CreatedFast on success, or a Destroy message on failure.
This handshake was originally used for the first hop of every circuit. Nowadays it is used for creating one-hop circuits when we don’t know any onion key for the first hop.
Implementations§
source§impl CreateFast
impl CreateFast
Trait Implementations§
source§impl Body for CreateFast
impl Body for CreateFast
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 CreateFast
impl ChanMsg for CreateFast
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 CreateFast
impl Clone for CreateFast
source§fn clone(&self) -> CreateFast
fn clone(&self) -> CreateFast
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 CreateFast
impl Debug for CreateFast
source§impl From<CreateFast> for AnyChanMsg
impl From<CreateFast> for AnyChanMsg
source§fn from(m: CreateFast) -> AnyChanMsg
fn from(m: CreateFast) -> AnyChanMsg
Converts to this type from the input type.