pub struct PluginRegistrySnapshot { /* private fields */ }Expand description
Read-only snapshot of the activation registry
Safe to use outside of DynamicHub locks.
Implementations§
Source§impl PluginRegistrySnapshot
impl PluginRegistrySnapshot
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§
Auto Trait Implementations§
impl Forget for PluginRegistrySnapshot
impl Freeze for PluginRegistrySnapshot
impl RefUnwindSafe for PluginRegistrySnapshot
impl Send for PluginRegistrySnapshot
impl Sync for PluginRegistrySnapshot
impl Unpin for PluginRegistrySnapshot
impl UnsafeUnpin for PluginRegistrySnapshot
impl UnwindSafe for PluginRegistrySnapshot
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