pub struct Config {
pub rpc_endpoint: ServiceAddr,
pub ctl_endpoint: ServiceAddr,
pub storm_endpoint: ServiceAddr,
pub store_endpoint: ServiceAddr,
pub data_dir: PathBuf,
pub electrum_url: String,
pub chain: Chain,
pub threaded: bool,
}
Expand description
Final configuration resulting from data contained in config file environment variables and command-line options. For security reasons node key is kept separately.
Fields§
§rpc_endpoint: ServiceAddr
ZMQ socket for RPC API.
ctl_endpoint: ServiceAddr
ZMQ socket for RPC API.
storm_endpoint: ServiceAddr
ZMQ socket for Storm node service bus.
store_endpoint: ServiceAddr
ZMQ socket for Store service RPC.
data_dir: PathBuf
Data location
electrum_url: String
URL for the electrum server connection
chain: Chain
Chain used by the node.
threaded: bool
Indicates whether deamons should be spawned as threads (true) or as child processes (false)
Implementations§
source§impl Config
impl Config
pub fn set_rpc_endpoint(&mut self, endpoint: ServiceAddr)
pub fn set_storm_endpoint(&mut self, endpoint: ServiceAddr)
Trait Implementations§
source§impl PartialEq<Config> for Config
impl PartialEq<Config> for Config
impl Eq for Config
impl StructuralEq for Config
impl StructuralPartialEq for Config
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§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.