pub struct ImproveLockGuard(/* private fields */);Expand description
RAII guard that releases the improve-lock on drop.
Use ImproveLockGuard::acquire to claim and wrap the lock so that
any early return or panic automatically releases it (matches Python’s
try/finally).
The guard stores a String, not a MutexGuard, so it is Send and
can safely be held across .await points.
Implementations§
Trait Implementations§
Source§impl Drop for ImproveLockGuard
impl Drop for ImproveLockGuard
Auto Trait Implementations§
impl Freeze for ImproveLockGuard
impl RefUnwindSafe for ImproveLockGuard
impl Send for ImproveLockGuard
impl Sync for ImproveLockGuard
impl Unpin for ImproveLockGuard
impl UnsafeUnpin for ImproveLockGuard
impl UnwindSafe for ImproveLockGuard
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