Skip to main content

Module params

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

Re-exportsยง

use educe::Educe; ๐Ÿ”’
use tor_cell::chancell::msg::PaddingNegotiate; ๐Ÿ”’
use super::padding; ๐Ÿ”’

Macrosยง

define_channels_insns_and_automatic_impls ๐Ÿ”’
Generate most of the types and methods relating to ChannelPaddingInstructions: things which contain or process all instructions fields (or each one)

Structsยง

ChannelPaddingInstructions
Initial, and, overall, padding instructions for channels
ChannelPaddingInstructionsUpdates
New instructions to the reactor
ChannelPaddingInstructionsUpdatesBuilder
Builder for a channels padding instructions update