pub struct Create { /* private fields */ }Expand description
A Create message creates a circuit, using the TAP handshake.
TAP is an obsolete handshake based on RSA-1024 and DH-1024. Relays respond to Create message with a Created reply on success, or a Destroy message on failure.
In Tor today, Create is only used for the deprecated v2 onion service protocol.
Implementations§
Trait Implementations§
source§impl Body for Create
impl Body for Create
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 Create
impl ChanMsg for Create
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<Create> for AnyChanMsg
impl From<Create> for AnyChanMsg
source§fn from(m: Create) -> AnyChanMsg
fn from(m: Create) -> AnyChanMsg
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for Create
impl Send for Create
impl Sync for Create
impl Unpin for Create
impl UnwindSafe for Create
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more