pub struct Created2 { /* private fields */ }Expand description
A Created2 message completes a circuit-creation handshake.
When a relay receives a valid Create2 message that it can handle, it establishes the circuit and replies with a Created2.
Implementations§
Trait Implementations§
source§impl Body for Created2
impl Body for Created2
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 Created2
impl ChanMsg for Created2
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<Created2> for AnyChanMsg
impl From<Created2> for AnyChanMsg
source§fn from(m: Created2) -> AnyChanMsg
fn from(m: Created2) -> AnyChanMsg
Converts to this type from the input type.