pub struct OptionRegistry { /* private fields */ }Expand description
Registry of all known configuration options.
Implementations§
Source§impl OptionRegistry
impl OptionRegistry
pub fn new() -> Self
pub fn register(&mut self, def: OptionDef)
pub fn get(&self, name: &str) -> Option<&OptionDef>
pub fn contains(&self, name: &str) -> bool
pub fn all(&self) -> &HashMap<String, OptionDef>
pub fn count(&self) -> usize
pub fn by_category(&self, cat: OptionCategory) -> Vec<&OptionDef>
Source§impl OptionRegistry
§General Options
impl OptionRegistry
§General Options
Sourcepub fn register_general_options(&mut self)
pub fn register_general_options(&mut self)
Register general-purpose options: directory, output, logging, UI, session management.
Source§impl OptionRegistry
§HTTP/FTP Options
impl OptionRegistry
§HTTP/FTP Options
Sourcepub fn register_http_ftp_options(&mut self)
pub fn register_http_ftp_options(&mut self)
Register HTTP/FTP download options: proxies, headers, timeouts, connection management.
Source§impl OptionRegistry
§BitTorrent Options
impl OptionRegistry
§BitTorrent Options
Sourcepub fn register_bt_options(&mut self)
pub fn register_bt_options(&mut self)
Register BitTorrent-specific options: seeding, DHT, PEX, peer management.
Source§impl OptionRegistry
§RPC Options
impl OptionRegistry
§RPC Options
Sourcepub fn register_rpc_options(&mut self)
pub fn register_rpc_options(&mut self)
Register JSON-RPC/XML-RPC server options: listening, authentication, CORS.
Source§impl OptionRegistry
§Advanced Options
impl OptionRegistry
§Advanced Options
Sourcepub fn register_advanced_options(&mut self)
pub fn register_advanced_options(&mut self)
Register advanced/performance options: bandwidth limits, disk cache, file allocation.
Trait Implementations§
Source§impl Clone for OptionRegistry
impl Clone for OptionRegistry
Source§fn clone(&self) -> OptionRegistry
fn clone(&self) -> OptionRegistry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for OptionRegistry
impl RefUnwindSafe for OptionRegistry
impl Send for OptionRegistry
impl Sync for OptionRegistry
impl Unpin for OptionRegistry
impl UnsafeUnpin for OptionRegistry
impl UnwindSafe for OptionRegistry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more