pub struct DhtRouterParams {
pub mode: DhtMode,
pub accelerated_dht_client: Option<bool>,
pub public_ip_network: bool,
}Expand description
DHT router parameters
Fields§
§mode: DhtModeDHT mode
accelerated_dht_client: Option<bool>Enable accelerated DHT client
public_ip_network: boolUse public IP network
Trait Implementations§
Source§impl Clone for DhtRouterParams
impl Clone for DhtRouterParams
Source§fn clone(&self) -> DhtRouterParams
fn clone(&self) -> DhtRouterParams
Returns a duplicate 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 DhtRouterParams
impl Debug for DhtRouterParams
Source§impl Default for DhtRouterParams
impl Default for DhtRouterParams
Source§fn default() -> DhtRouterParams
fn default() -> DhtRouterParams
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DhtRouterParams
impl<'de> Deserialize<'de> for DhtRouterParams
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
Auto Trait Implementations§
impl Freeze for DhtRouterParams
impl RefUnwindSafe for DhtRouterParams
impl Send for DhtRouterParams
impl Sync for DhtRouterParams
impl Unpin for DhtRouterParams
impl UnwindSafe for DhtRouterParams
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