pub struct ScopeGuard { /* private fields */ }Expand description
RAII guard that pops a scope from a ScopedToolRegistry on drop.
Created by ScopedToolRegistry::push_scope_guarded. The scope is
popped when the guard is dropped, regardless of whether the scope is
still the top of the stack (non-top pops are silently ignored by
the underlying pop_scope).
Implementations§
Source§impl ScopeGuard
impl ScopeGuard
Sourcepub fn into_inner(self) -> Arc<ScopedToolRegistry> ⓘ
pub fn into_inner(self) -> Arc<ScopedToolRegistry> ⓘ
Consumes the guard without popping. The scope remains on the stack.
Returns the underlying ScopedToolRegistry reference.
Trait Implementations§
Source§impl Debug for ScopeGuard
impl Debug for ScopeGuard
Source§impl Drop for ScopeGuard
impl Drop for ScopeGuard
Auto Trait Implementations§
impl Freeze for ScopeGuard
impl RefUnwindSafe for ScopeGuard
impl Send for ScopeGuard
impl Sync for ScopeGuard
impl Unpin for ScopeGuard
impl UnsafeUnpin for ScopeGuard
impl UnwindSafe for ScopeGuard
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