pub struct Proxy {
pub host: String,
pub port: Port,
pub threads: ThreadCount,
pub routing_mode: RoutingMode,
pub backend_selection: BackendSelectionStrategy,
pub validate_yenc: bool,
pub log_file_level: String,
pub stats_file: Option<PathBuf>,
pub buffer_pool_count: usize,
pub capture_pool_count: usize,
}Expand description
Proxy server settings
Fields§
§host: StringHost/IP to bind to (default: 0.0.0.0)
port: PortPort to listen on (default: 8119)
threads: ThreadCountNumber of worker threads (default: 1, use 0 for CPU cores)
routing_mode: RoutingModeRouting mode for the proxy
backend_selection: BackendSelectionStrategyBackend selection strategy for load balancing
validate_yenc: boolValidate yEnc structure and checksums (default: true)
log_file_level: StringFilter directives for the optional local-TUI debug.log appender (default: “warn”)
Accepts tracing filter directives: “error”, “warn”, “info”, “debug”, “trace”
stats_file: Option<PathBuf>Path to stats file for metric persistence (optional) When set, metrics are persisted to this file every 30 seconds and on shutdown Defaults to “stats.json” alongside the config file if not specified
buffer_pool_count: usizeLegacy buffer pool count retained for config migration compatibility.
capture_pool_count: usizeLegacy capture pool count retained for config migration compatibility.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Proxy
impl<'de> Deserialize<'de> for Proxy
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>,
impl Eq for Proxy
impl StructuralPartialEq for Proxy
Auto Trait Implementations§
impl Freeze for Proxy
impl RefUnwindSafe for Proxy
impl Send for Proxy
impl Sync for Proxy
impl Unpin for Proxy
impl UnsafeUnpin for Proxy
impl UnwindSafe for Proxy
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> Code for Twhere
T: Serialize + DeserializeOwned,
impl<T> Code for Twhere
T: Serialize + DeserializeOwned,
Source§fn encode(&self, writer: &mut impl Write) -> Result<(), Error>
fn encode(&self, writer: &mut impl Write) -> Result<(), Error>
Source§fn decode(reader: &mut impl Read) -> Result<T, Error>
fn decode(reader: &mut impl Read) -> Result<T, Error>
Source§fn estimated_size(&self) -> usize
fn estimated_size(&self) -> usize
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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