Type Alias darkfi::net::hosts::HostRegistry

source ·
pub(super) type HostRegistry = Mutex<HashMap<Url, HostState>>;
Expand description

Keeps track of hosts and their current state. Prevents race conditions where multiple threads are simultaneously trying to change the state of a given host.

Aliased Type§

struct HostRegistry { /* private fields */ }