pub struct HostConfig {
pub store_path: Option<PathBuf>,
pub keys: NetworkKeys,
pub request_timeout: Duration,
pub nonce_timeout: Duration,
pub inclusion_timeout: Duration,
pub user_timeout: Duration,
pub wake_up_interval: u32,
pub awake_idle: Duration,
pub store_delay: Duration,
pub serial: Config,
}Expand description
Configuration of the host stack.
Fields§
§store_path: Option<PathBuf>Where the node store lives; None keeps it in memory only.
keys: NetworkKeysThe network keys.
request_timeout: DurationHow long to wait for a node’s reply.
nonce_timeout: DurationHow long to wait for a nonce.
inclusion_timeout: DurationHow long inclusion and exclusion wait for a node.
user_timeout: DurationHow long to wait for a person to grant keys or type a PIN.
wake_up_interval: u32The wake-up interval to configure on sleeping nodes, seconds.
awake_idle: DurationHow long an awake node may sit idle before it is sent back to sleep.
store_delay: DurationHow long changes collect before the store is written.
serial: ConfigSerial link timing.
Implementations§
Source§impl HostConfig
impl HostConfig
Sourcepub fn new(keys: NetworkKeys, store_path: Option<PathBuf>) -> Self
pub fn new(keys: NetworkKeys, store_path: Option<PathBuf>) -> Self
Defaults with these keys and store.
Trait Implementations§
Source§impl Clone for HostConfig
impl Clone for HostConfig
Auto Trait Implementations§
impl Freeze for HostConfig
impl RefUnwindSafe for HostConfig
impl Send for HostConfig
impl Sync for HostConfig
impl Unpin for HostConfig
impl UnsafeUnpin for HostConfig
impl UnwindSafe for HostConfig
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