pub struct DaemonConfig {
pub coordinator_addr: String,
pub coordinator_url: Option<String>,
pub signer_id: String,
pub quorum_id: String,
pub share_file: String,
pub scheme: String,
pub reconnect_backoff_secs: u64,
pub max_reconnect_attempts: u32,
}Expand description
Top-level daemon configuration.
Fields§
§coordinator_addr: StringCoordinator TCP address (e.g., “127.0.0.1:18432”). Ignored
when coordinator_url is set.
coordinator_url: Option<String>Coordinator transport URL — plain (tcp://host:port) or
encrypted (noise://host:port?key=<hex>&pinned=<hex>). Takes
precedence over coordinator_addr.
signer_id: StringThis signer’s identity.
quorum_id: StringQuorum this signer belongs to.
Path to the local share file (JSON).
scheme: StringSigning scheme (e.g., “CMP20”, “FROST-P256”).
reconnect_backoff_secs: u64Reconnect backoff in seconds (default: 5).
max_reconnect_attempts: u32Maximum reconnect attempts before giving up (0 = infinite).
Implementations§
Source§impl DaemonConfig
impl DaemonConfig
Sourcepub fn load(path: &Path) -> Result<Self, ConfigError>
pub fn load(path: &Path) -> Result<Self, ConfigError>
Load configuration from a TOML file.
fn validate(&self) -> Result<(), ConfigError>
Trait Implementations§
Source§impl Clone for DaemonConfig
impl Clone for DaemonConfig
Source§fn clone(&self) -> DaemonConfig
fn clone(&self) -> DaemonConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DaemonConfig
impl Debug for DaemonConfig
Source§impl<'de> Deserialize<'de> for DaemonConfig
impl<'de> Deserialize<'de> for DaemonConfig
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
Auto Trait Implementations§
impl Freeze for DaemonConfig
impl RefUnwindSafe for DaemonConfig
impl Send for DaemonConfig
impl Sync for DaemonConfig
impl Unpin for DaemonConfig
impl UnsafeUnpin for DaemonConfig
impl UnwindSafe for DaemonConfig
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