pub struct ScopedRegistry(/* private fields */);Expand description
A helper to add VMOs to a global registry that removes all installed VMOs on drop.
Implementations§
Source§impl ScopedRegistry
impl ScopedRegistry
Sourcepub fn register_handler<H: RegistryHandler>(&mut self, vmo: &Vmo, handler: H)
pub fn register_handler<H: RegistryHandler>(&mut self, vmo: &Vmo, handler: H)
Registers handler for vmo.
Registers a shared reference-counted handler for vmo.
Trait Implementations§
Source§impl Clone for ScopedRegistry
impl Clone for ScopedRegistry
Source§impl Debug for ScopedRegistry
impl Debug for ScopedRegistry
Source§impl Default for ScopedRegistry
impl Default for ScopedRegistry
Source§impl Drop for ScopedRegistry
impl Drop for ScopedRegistry
Auto Trait Implementations§
impl Freeze for ScopedRegistry
impl RefUnwindSafe for ScopedRegistry
impl Send for ScopedRegistry
impl Sync for ScopedRegistry
impl Unpin for ScopedRegistry
impl UnsafeUnpin for ScopedRegistry
impl UnwindSafe for ScopedRegistry
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