pub struct UdpTracker {
pub enabled: bool,
pub bind_address: String,
}Expand description
Configuration for each UDP tracker.
Fields§
§enabled: boolWeather the UDP 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.
Trait Implementations§
source§impl Clone for UdpTracker
impl Clone for UdpTracker
source§fn clone(&self) -> UdpTracker
fn clone(&self) -> UdpTracker
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 UdpTracker
impl Debug for UdpTracker
source§impl<'de> Deserialize<'de> for UdpTracker
impl<'de> Deserialize<'de> for UdpTracker
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<UdpTracker> for UdpTracker
impl PartialEq<UdpTracker> for UdpTracker
source§fn eq(&self, other: &UdpTracker) -> bool
fn eq(&self, other: &UdpTracker) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for UdpTracker
impl Serialize for UdpTracker
impl Eq for UdpTracker
impl StructuralEq for UdpTracker
impl StructuralPartialEq for UdpTracker
Auto Trait Implementations§
impl RefUnwindSafe for UdpTracker
impl Send for UdpTracker
impl Sync for UdpTracker
impl Unpin for UdpTracker
impl UnwindSafe for UdpTracker
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.