Struct tor_cell::relaycell::RelayCell[][src]

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

A decoded and parsed relay cell.

Each relay cell represents a message that can be sent along a circuit, along with the ID for an associated stream that the message is meant for.

Implementations

Construct a new relay cell.

Consume this cell and return its components.

Return the command for this cell.

Return the underlying message for this cell.

Consume this relay message and encode it as a 509-byte padded cell body.

Parse a RELAY or RELAY_EARLY cell body into a RelayCell.

Requires that the cryptographic checks on the message have already been performed

Parse a RELAY or RELAY_EARLY cell body into a RelayCell from a reader.

Requires that the cryptographic checks on the message have already been performed

Trait Implementations

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 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.