pub struct RelayCmd(_);
Expand description

A command that identifies the type of a relay cell

Implementations

Start a new stream

Data on a stream

Close a stream

Acknowledge a BEGIN; stream is open

Used for flow control

Extend a circuit to a new hop; deprecated

Reply to EXTEND handshake; deprecated

Partially close a circuit

Circuit has been partially closed

Padding cell

Start a DNS lookup

Reply to a DNS lookup

Start a directory stream

Extend a circuit to a new hop

Reply to an EXTEND2 cell.

NOTE: UDP command are reserved but only used with experimental-udp feature UDP: Start of a stream

UDP: Acknowledge a CONNECT_UDP. Stream is open.

UDP: Data on a UDP stream.

HS: establish an introduction point.

HS: establish a rendezvous point.

HS: send introduction (client to introduction point)

HS: send introduction (introduction point to service)

HS: connect rendezvous point (service to rendezvous point)

HS: connect rendezvous point (rendezvous point to client)

HS: Response to ESTABLISH_INTRO

HS: Response to ESTABLISH_RENDEZVOUS

HS: Response to INTRODUCE1 from introduction point to client

Padding: declare what kind of padding we want

Padding: reply to a PADDING_NEGOTIATE

Return true if this value is one that we recognize.

Try to convert this value from one of the recognized names.

Return true if this command is one that accepts the particular stream ID id

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
Formats the value using the given formatter. Read more
Converts to this type from the input type.
Converts to this type from the input type.
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. 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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
Converts the given value to a String. 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.