[][src]Struct kad::Config

pub struct Config {
    pub k: usize,
    pub concurrency: usize,
    pub max_recursion: usize,
    pub search_timeout: Duration,
    pub node_timeout: Duration,
}

DHT Configuration object

Fields

k: usize

Size of buckets and number of nearby nodes to consider when searching

concurrency: usize

Number of concurrent operations to be performed at once (also known as α or alpha)

max_recursion: usize

Maximum recursion depth for searches

search_timeout: Duration

Timeout for search iterations with missing responses

node_timeout: Duration

Timeout for no-contact from oldest node (before ping and expiry occurs)

Trait Implementations

impl Clone for Config[src]

impl Debug for Config[src]

impl Default for Config[src]

impl PartialEq<Config> for Config[src]

impl StructOpt for Config[src]

impl StructOptInternal for Config[src]

impl StructuralPartialEq for Config[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.