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

source ·
pub(super) type HostRegistry = RwLock<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 {
    raw: RawRwLock,
    value: UnsafeCell<HashMap<Url, HostState>>,
}

Fields§

§raw: RawRwLock§value: UnsafeCell<HashMap<Url, HostState>>