pub struct AdvisoryLock {
pub key: AdvisoryKey,
pub share: bool,
pub session: bool,
}Expand description
A request for an advisory lock: the key, the mode, which is ShareLock when share is true and ExclusiveLock when it is false, and the level, which is the session when session is true and the transaction when it is false.
Fields§
§key: AdvisoryKey§session: boolTrait Implementations§
Source§impl Clone for AdvisoryLock
impl Clone for AdvisoryLock
impl Copy for AdvisoryLock
Source§impl Debug for AdvisoryLock
impl Debug for AdvisoryLock
impl Eq for AdvisoryLock
Source§impl PartialEq for AdvisoryLock
impl PartialEq for AdvisoryLock
impl StructuralPartialEq for AdvisoryLock
Auto Trait Implementations§
impl Freeze for AdvisoryLock
impl RefUnwindSafe for AdvisoryLock
impl Send for AdvisoryLock
impl Sync for AdvisoryLock
impl Unpin for AdvisoryLock
impl UnsafeUnpin for AdvisoryLock
impl UnwindSafe for AdvisoryLock
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