Expand description
Unified settings pack for session configuration.
Replaces the old SessionConfig with a single strongly-typed struct that
consolidates all configurable knobs. Supports presets, validation, and
serde serialization (bencode + JSON).
Macros§
- for_
each_ delta_ setting - Live-reconfigurable settings projected into
SettingsDelta(28) — the M247b SSOT forSettingsDelta::from_diff/is_empty. The subset ofSettingspropagated to running torrents byapply_settings. Per entry: the sourceSettingsfield (src), theSettingsDeltafield name (delta, differs only formax_peers), and whetherfrom_diffclones the value (clone: truefor the non-CopyPathBuf/Stringpayloads). Type metadata is intentionally absent: theSettingsDeltastruct stays hand-written (M247b plan D3), so only diff/emptiness projection is generated. Entry order matchesfrom_difffor readability; correctness does not depend on it (distinct fields). Invoke with an emitter:for_each_delta_setting!(emit_x); - for_
each_ proxy_ setting - Nested
ProxyConfigfields (9; accessed viaself.proxy.<name>). - for_
each_ qbt_ compat_ setting - Nested
QbtCompatSettingsfields (20; accessed viaself.qbt_compat.<name>). - for_
each_ setting - Top-level
Settingsfields (192). Invoke with an emitter:for_each_setting!(emit_x);
Structs§
- QbtCompat
Settings - qBittorrent
WebUIv2 compatibility layer configuration. - Settings
- Unified session settings (replaces
SessionConfig).
Enums§
- MaxRatio
Action - M171: Action taken when a torrent’s seed ratio reaches its configured limit.
- QbtCredential
Migration - Outcome of a legacy-plaintext migration pass (M172a A3 / C2).
- QbtMigration
Error - Errors raised by
migrate_qbt_credentials. - Settings
Error - Validation failure produced by
Settings::validate.
Constants§
- DEFAULT_
ADMINADMIN_ HASH - Argon2id PHC hash of the default “adminadmin” password (M172a A3).
Functions§
- default_
ban_ duration_ secs - Default for
QbtCompatSettings::ban_duration_secs. - default_
max_ failed_ auth_ count - Default for
QbtCompatSettings::max_failed_auth_count. - hash_
qbt_ password - Hash
plaintextwith OWASP-recommended argon2id parameters and return the PHC-format encoded string (M172a). - migrate_
qbt_ credentials - One-shot legacy-plaintext → argon2id migration for
QbtCompatSettings.