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§
Source§impl Clone for PluginRegistrySnapshot
impl Clone for PluginRegistrySnapshot
Source§fn clone(&self) -> PluginRegistrySnapshot
fn clone(&self) -> PluginRegistrySnapshot
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
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