Skip to main content

SharedSnippetRegistry

Type Alias SharedSnippetRegistry 

Source
pub type SharedSnippetRegistry = ArcSwap<SnippetRegistry>;
Expand description

Shared handle to a swappable snippet registry. The App owns one Arc<SharedSnippetRegistry>; the mode + source capture clones of the outer Arc. :reload-snippets calls .store() on the inner ArcSwap – the mode keeps reading via the outer handle and sees the fresh data on the next produce().

Aliased Type§

pub struct SharedSnippetRegistry { /* private fields */ }