Struct safe_network::routing::Config [−][src]
pub struct Config {
pub first: bool,
pub keypair: Option<Keypair>,
pub local_addr: SocketAddr,
pub bootstrap_nodes: BTreeSet<SocketAddr>,
pub genesis_key: Option<String>,
pub network_config: NetworkConfig,
}Expand description
Routing configuration.
Fields
first: boolIf true, configures the node to start a new network instead of joining an existing one.
keypair: Option<Keypair>The Keypair of the node or None for randomly generated one.
local_addr: SocketAddrThe local address to bind to.
bootstrap_nodes: BTreeSet<SocketAddr>Initial network contacts.
genesis_key: Option<String>Network’s genesis key if joining an existing network.
network_config: NetworkConfigConfiguration for the underlying network transport.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Config
impl UnwindSafe for Config
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more