pub struct HttpTracker {
pub enabled: bool,
pub bind_address: String,
pub ssl_enabled: bool,
pub ssl_cert_path: Option<String>,
pub ssl_key_path: Option<String>,
}Expand description
Configuration for each HTTP tracker.
Fields§
§enabled: boolWeather the HTTP tracker is enabled or not.
bind_address: StringThe address the tracker will bind to.
The format is ip:port, for example 0.0.0.0:6969. If you want to
listen to all interfaces, use 0.0.0.0. If you want the operating
system to choose a random port, use port 0.
ssl_enabled: boolWeather the HTTP tracker will use SSL or not.
ssl_cert_path: Option<String>Path to the SSL certificate file. Only used if ssl_enabled is true.
ssl_key_path: Option<String>Path to the SSL key file. Only used if ssl_enabled is true.
Trait Implementations§
source§impl Clone for HttpTracker
impl Clone for HttpTracker
source§fn clone(&self) -> HttpTracker
fn clone(&self) -> HttpTracker
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for HttpTracker
impl Debug for HttpTracker
source§impl<'de> Deserialize<'de> for HttpTracker
impl<'de> Deserialize<'de> for HttpTracker
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>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<HttpTracker> for HttpTracker
impl PartialEq<HttpTracker> for HttpTracker
source§fn eq(&self, other: &HttpTracker) -> bool
fn eq(&self, other: &HttpTracker) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for HttpTracker
impl Serialize for HttpTracker
impl Eq for HttpTracker
impl StructuralEq for HttpTracker
impl StructuralPartialEq for HttpTracker
Auto Trait Implementations§
impl RefUnwindSafe for HttpTracker
impl Send for HttpTracker
impl Sync for HttpTracker
impl Unpin for HttpTracker
impl UnwindSafe for HttpTracker
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.