Module tor_proto::channel::params

source ·
Expand description

Parameters influencing all channels in a Tor client

This module contains ChannelPaddingInstructions.

These are instructions about what to do about padding. They include information about:

  • whether padding is to be sent
  • what timing parameters to use for sending padding
  • what PADDING_NEGOTIATE cell to send

The instructions are, ultimately, instructions to the channel reactor. The reactor gets a ChannelPaddingInstructionsUpdates, which is a set of changes to make.

The producer side is the channel manager, which records the current ChannelPaddingInstructions and makes updates with ChannelPaddingInstructionsUpdatesBuilder (and is assisted by Channel::engage_padding_activities).

Structs§