Struct tor_cell::relaycell::msg::Extend2[][src]

pub struct Extend2 { /* fields omitted */ }
Expand description

An Extend2 message tells the last relay in a circuit to extend to a new hop.

When a relay (call it R) receives an Extend2 message, it tries to find (or make) a channel to the other relay (R’) described in the list of link specifiers. (A link specifier can be an IP addresses or a cryptographic identity). Once R has such a channel, the it packages the client’s handshake data as a new Create2 message R’. If R’ replies with a Created2 (success) message, R packages that message’s contents in an Extended message. Unlike Extend messages, Extend2 messages can encode any handshake type, and can describe relays in ways other than IPv4 addresses and RSA identities.

Implementations

Create a new Extend2 cell.

Return the type of this handshake.

Return the inner handshake for this Extend2 cell.

Trait Implementations

Convert this type into a RelayMsg, wrapped appropriate.

Decode a relay cell body from a provided reader.

Encode the body of this cell into the end of a vec.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.