Enum tor_cell::chancell::msg::ChanMsg[][src]

#[non_exhaustive]
pub enum ChanMsg {
Show variants Padding(Padding), VPadding(VPadding), Create(Create), CreateFast(CreateFast), Create2(Create2), Created(Created), CreatedFast(CreatedFast), Created2(Created2), Relay(Relay), RelayEarly(Relay), Destroy(Destroy), Netinfo(Netinfo), Versions(Versions), PaddingNegotiate(PaddingNegotiate), Certs(Certs), AuthChallenge(AuthChallenge), Authenticate(Authenticate), Authorize(Authorize), Unrecognized(Unrecognized),
}
Expand description

Decoded message from a channel.

A ChanMsg is an item received on a channel – a message from another Tor client or relay that we are connected to directly over a TLS connection.

Variants (Non-exhaustive)

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Padding(Padding)

A Padding message

VPadding(VPadding)

Variable-length padding message

Create(Create)

(Deprecated) TAP-based cell to create a new circuit.

CreateFast(CreateFast)

(Mostly deprecated) HMAC-based cell to create a new circuit.

Create2(Create2)

Cell to create a new circuit

Created(Created)

(Deprecated) Answer to a Create cell

CreatedFast(CreatedFast)

(Mostly Deprecated) Answer to a CreateFast cell

Created2(Created2)

Answer to a Create2 cell

Relay(Relay)

A message sent along a circuit, likely to a more-distant relay.

RelayEarly(Relay)

A message sent along a circuit (limited supply)

Destroy(Destroy)

Tear down a circuit

Netinfo(Netinfo)

Part of channel negotiation: describes our position on the network

Versions(Versions)

Part of channel negotiation: describes what link protocol versions we support

PaddingNegotiate(PaddingNegotiate)

Negotiates what kind of channel padding to send

Certs(Certs)

Part of channel negotiation: additional certificates not in the TLS handshake

AuthChallenge(AuthChallenge)

Part of channel negotiation: additional random material to be used as part of authentication

Authenticate(Authenticate)

Part of channel negotiation: used to authenticate relays when they initiate the channel.

Authorize(Authorize)

Not yet used

Unrecognized(Unrecognized)

Any cell whose command we don’t recognize

Implementations

Return the ChanCmd for this message.

Write the body of this message (not including length or command).

Decode this message from a given reader, according to a specified command value. The reader must be truncated to the exact length of the body.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

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.