pub struct PluginRegistry { /* private fields */ }Expand description
Registry mapping activation UUIDs to their current paths
This enables handle routing without path dependency - handles reference activations by their stable UUID, and the registry maps to the current path.
Implementations§
Source§impl PluginRegistry
impl PluginRegistry
Sourcepub fn lookup_by_path(&self, path: &str) -> Option<Uuid>
pub fn lookup_by_path(&self, path: &str) -> Option<Uuid>
Look up an activation’s UUID by its path
Sourcepub fn get(&self, id: Uuid) -> Option<&PluginEntry>
pub fn get(&self, id: Uuid) -> Option<&PluginEntry>
Get an activation entry by its UUID
Sourcepub fn list(&self) -> impl Iterator<Item = &PluginEntry>
pub fn list(&self) -> impl Iterator<Item = &PluginEntry>
List all registered activations
Trait Implementations§
Source§impl Default for PluginRegistry
impl Default for PluginRegistry
Source§fn default() -> PluginRegistry
fn default() -> PluginRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PluginRegistry
impl RefUnwindSafe for PluginRegistry
impl Send for PluginRegistry
impl Sync for PluginRegistry
impl Unpin for PluginRegistry
impl UnsafeUnpin for PluginRegistry
impl UnwindSafe for PluginRegistry
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