Struct nakamoto_node::client::protocol::Config
[−]pub struct Config {Show 15 fields
pub network: Network,
pub connect: Vec<SocketAddr, Global>,
pub domains: Vec<Domain, Global>,
pub services: ServiceFlags,
pub required_services: ServiceFlags,
pub whitelist: Whitelist,
pub params: Params,
pub protocol_version: u32,
pub user_agent: &'static str,
pub target_outbound_peers: usize,
pub max_inbound_peers: usize,
pub ping_timeout: LocalDuration,
pub filter_cache_size: usize,
pub target: &'static str,
pub hooks: Hooks,
}Expand description
Protocol configuration.
Fields
network: NetworkBitcoin network we are connected to.
connect: Vec<SocketAddr, Global>Peers to connect to.
domains: Vec<Domain, Global>Supported communication domains.
services: ServiceFlagsServices offered by our peer.
required_services: ServiceFlagsRequired peer services.
whitelist: WhitelistPeer whitelist. Peers in this list are trusted by default.
params: ParamsConsensus parameters.
protocol_version: u32Our protocol version.
user_agent: &'static strOur user agent.
target_outbound_peers: usizeTarget outbound peer connections.
max_inbound_peers: usizeMaximum inbound peer connections.
ping_timeout: LocalDurationPing timeout, after which remotes are disconnected.
filter_cache_size: usizeSize in bytes of the compact filter cache.
target: &'static strLog target.
hooks: HooksProtocol event hooks.
Implementations
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl !UnwindSafe for Config
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more