     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26

    use std::{net, path};
    use message::common::Services;
    use net::Config as NetConfig;
    use util::InternetProtocol;

    #[derive(Debug, Clone)]
    pub struct Config {
    	/// Number of threads used by p2p thread pool.
    	pub threads: usize,
    	/// Number of inbound connections.
    	pub inbound_connections: u32,
    	/// Number of outbound connections.
    	pub outbound_connections: u32,
    	/// Configuration for every connection.
    	pub connection: NetConfig,
    	/// Connect only to these nodes.
    	pub peers: Vec<net::SocketAddr>,
    	/// Connect to these nodes to retrieve peer addresses, and disconnect.
    	pub seeds: Vec<String>,
    	/// p2p/nodes.csv file path.
    	pub node_table_path: path::PathBuf,
    	/// Peers with this services will get a boost in node_table.
    	pub preferable_services: Services,
    	/// Internet protocol.
    	pub internet_protocol: InternetProtocol,
    }

# Help

## Keyboard Shortcuts

`?`
  Show this help dialog
`S`
  Focus the search field
`↑`
  Move up in search results
`↓`
  Move down in search results
`↹`
  Switch tab
`⏎`
  Go to active search result
`+`
  Expand all sections
`-`
  Collapse all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)

Search multiple things at once by splitting your query with comma (e.g. `str,u8` or `String,struct:Vec,test`)