pub struct GeneralConfig {Show 20 fields
pub listen_addr: String,
pub port: u16,
pub api_key: Option<String>,
pub incomplete_dir: PathBuf,
pub complete_dir: PathBuf,
pub data_dir: PathBuf,
pub speed_limit_bps: u64,
pub cache_size: u64,
pub log_level: String,
pub log_file: Option<PathBuf>,
pub history_retention: Option<usize>,
pub max_active_downloads: usize,
pub min_free_space_bytes: u64,
pub watch_dir: Option<PathBuf>,
pub rss_history_limit: Option<usize>,
pub direct_unpack: bool,
pub abort_hopeless: bool,
pub early_failure_check: bool,
pub required_completion_pct: f64,
pub article_timeout_secs: u64,
}Fields§
§listen_addr: StringHTTP API listen address
port: u16HTTP API port
api_key: Option<String>API key for authentication
incomplete_dir: PathBufDirectory for incomplete downloads
complete_dir: PathBufDirectory for completed downloads
data_dir: PathBufDirectory for application data (DB, logs)
speed_limit_bps: u64Download speed limit in bytes/sec (0 = unlimited)
cache_size: u64Article cache size in bytes
log_level: StringLog level
log_file: Option<PathBuf>Log file path (None = stdout only)
history_retention: Option<usize>History retention: how many NZBs to keep in history (None = keep all)
max_active_downloads: usizeMax number of NZBs downloading simultaneously (default 1)
min_free_space_bytes: u64Minimum free disk space in bytes before pausing downloads (default 1 GB)
watch_dir: Option<PathBuf>Directory to watch for new .nzb files to auto-enqueue
rss_history_limit: Option<usize>RSS feed history limit: how many feed items to keep (None = keep all, default 500)
direct_unpack: boolBegin extracting RAR volumes during download instead of waiting for the
job to complete. Requires unrar on PATH. Falls back to normal
post-processing if articles fail or unrar is unavailable.
abort_hopeless: boolAbort downloads that cannot possibly complete (too many missing articles). When enabled, the engine checks article failure rates and cancels jobs that have no chance of success. Default: true.
early_failure_check: boolQuick initial check: after the first N articles have been attempted,
abort if the failure rate exceeds 80%. Catches completely dead NZBs
within seconds instead of grinding through thousands of articles.
Requires abort_hopeless to also be enabled. Default: true.
required_completion_pct: f64Minimum completion percentage required to keep downloading (excluding par2 repair files). If the ratio of available content bytes to total content bytes drops below this value, the job is aborted. Range: 100.0–200.0. Default: 100.2 (par2 overhead means slight over-completion is normal).
article_timeout_secs: u64Maximum time in seconds to wait for a single NNTP article response before treating the connection as stalled and reconnecting. 0 = no timeout. Default: 30.
Trait Implementations§
Source§impl Clone for GeneralConfig
impl Clone for GeneralConfig
Source§fn clone(&self) -> GeneralConfig
fn clone(&self) -> GeneralConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GeneralConfig
impl Debug for GeneralConfig
Source§impl Default for GeneralConfig
impl Default for GeneralConfig
Source§impl<'de> Deserialize<'de> for GeneralConfigwhere
GeneralConfig: Default,
impl<'de> Deserialize<'de> for GeneralConfigwhere
GeneralConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for GeneralConfig
impl RefUnwindSafe for GeneralConfig
impl Send for GeneralConfig
impl Sync for GeneralConfig
impl Unpin for GeneralConfig
impl UnsafeUnpin for GeneralConfig
impl UnwindSafe for GeneralConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more