pub struct PgAdvisoryLockGuard { /* private fields */ }Expand description
A guard representing a held advisory lock.
The lock is NOT automatically released on drop — you must call release().
This is intentional because releasing requires an async database call.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PgAdvisoryLockGuard
impl RefUnwindSafe for PgAdvisoryLockGuard
impl Send for PgAdvisoryLockGuard
impl Sync for PgAdvisoryLockGuard
impl Unpin for PgAdvisoryLockGuard
impl UnsafeUnpin for PgAdvisoryLockGuard
impl UnwindSafe for PgAdvisoryLockGuard
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