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
sourceimpl CreateFast
impl CreateFast
Trait Implementations
sourceimpl Body for CreateFast
impl Body for CreateFast
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 moresourceimpl Clone for CreateFast
impl Clone for CreateFast
sourcefn clone(&self) -> CreateFast
fn clone(&self) -> CreateFast
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for CreateFast
impl Debug for CreateFast
Auto Trait Implementations
impl RefUnwindSafe for CreateFast
impl Send for CreateFast
impl Sync for CreateFast
impl Unpin for CreateFast
impl UnwindSafe for CreateFast
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