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
sourceimpl Body for Create2
impl Body for Create2
sourcefn into_message(self) -> ChanMsg
fn into_message(self) -> ChanMsg
Convert this type into a ChanMsg, wrapped as appropriate.
sourcefn write_body_onto<W: Writer + ?Sized>(self, w: &mut W) -> EncodeResult<()>
fn write_body_onto<W: Writer + ?Sized>(self, w: &mut W) -> EncodeResult<()>
Consume this message and encode its body onto
w. Read moreAuto Trait Implementations
impl RefUnwindSafe for Create2
impl Send for Create2
impl Sync for Create2
impl Unpin for Create2
impl UnwindSafe for Create2
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more