pub struct NodeConfig {Show 19 fields
pub dms_base_url: Url,
pub node_version: String,
pub request_timeout_secs: u64,
pub dds_base_url: Option<Url>,
pub node_url: Option<Url>,
pub reg_secret: Option<String>,
pub secp256k1_privhex: Option<String>,
pub heartbeat_jitter_ms: u64,
pub poll_backoff_ms_min: u64,
pub poll_backoff_ms_max: u64,
pub token_safety_ratio: f32,
pub token_reauth_max_retries: u32,
pub token_reauth_jitter_ms: u64,
pub register_interval_secs: Option<u64>,
pub register_max_retry: Option<i32>,
pub max_concurrency: u32,
pub log_format: LogFormat,
pub enable_noop: bool,
pub noop_sleep_secs: u64,
}Expand description
Node configuration loaded from environment (SPECS §8 Configuration).
Fields§
§dms_base_url: Url§node_version: String§request_timeout_secs: u64§dds_base_url: Option<Url>§node_url: Option<Url>§reg_secret: Option<String>§secp256k1_privhex: Option<String>§heartbeat_jitter_ms: u64§poll_backoff_ms_min: u64§poll_backoff_ms_max: u64§token_safety_ratio: f32§token_reauth_max_retries: u32§token_reauth_jitter_ms: u64§register_interval_secs: Option<u64>§register_max_retry: Option<i32>§max_concurrency: u32§log_format: LogFormat§enable_noop: bool§noop_sleep_secs: u64Implementations§
Trait Implementations§
Source§impl Clone for NodeConfig
impl Clone for NodeConfig
Source§fn clone(&self) -> NodeConfig
fn clone(&self) -> NodeConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NodeConfig
impl Debug for NodeConfig
Source§impl<'de> Deserialize<'de> for NodeConfig
impl<'de> Deserialize<'de> for NodeConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for NodeConfig
impl PartialEq for NodeConfig
Source§impl Serialize for NodeConfig
impl Serialize for NodeConfig
impl StructuralPartialEq for NodeConfig
Auto Trait Implementations§
impl Freeze for NodeConfig
impl RefUnwindSafe for NodeConfig
impl Send for NodeConfig
impl Sync for NodeConfig
impl Unpin for NodeConfig
impl UnwindSafe for NodeConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more