pub struct Create2 { /* private fields */ }Expand description
A Create2 message create a circuit on the current channel.
To create a circuit, the client sends a Create2 cell containing a handshake of a given type; the relay responds with a Created2 cell containing a reply.
Currently, most Create2 cells contain a client-side instance of the “ntor” handshake.
Implementations§
Trait Implementations§
source§impl Body for Create2
impl Body for Create2
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 Create2
impl ChanMsg for Create2
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 From<Create2> for AnyChanMsg
impl From<Create2> for AnyChanMsg
source§fn from(m: Create2) -> AnyChanMsg
fn from(m: Create2) -> AnyChanMsg
Converts to this type from the input type.