Struct libp2p_kad::handler::KademliaHandlerConfig [−][src]
pub struct KademliaHandlerConfig { pub protocol_config: KademliaProtocolConfig, pub allow_listening: bool, pub idle_timeout: Duration, }
Configuration of a KademliaHandler
.
Fields
protocol_config: KademliaProtocolConfig
Configuration of the wire protocol.
allow_listening: bool
If false, we deny incoming requests.
idle_timeout: Duration
Time after which we close an idle connection.
Trait Implementations
impl Clone for KademliaHandlerConfig
[src]
impl Clone for KademliaHandlerConfig
[src]fn clone(&self) -> KademliaHandlerConfig
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for KademliaHandlerConfig
[src]
impl Default for KademliaHandlerConfig
[src]