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.
Auto 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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more