#[repr(u8)]pub enum RelationLockMode {
AccessShare = 0,
RowShare = 1,
RowExclusive = 2,
ShareUpdateExclusive = 3,
Share = 4,
ShareRowExclusive = 5,
Exclusive = 6,
AccessExclusive = 7,
}Variants§
Implementations§
Source§impl RelationLockMode
impl RelationLockMode
Sourcepub fn conflicts_with(self, other: Self) -> bool
pub fn conflicts_with(self, other: Self) -> bool
The PostgreSQL table-lock conflict sets are not an ordering of strengths.
Trait Implementations§
Source§impl Clone for RelationLockMode
impl Clone for RelationLockMode
impl Copy for RelationLockMode
Source§impl Debug for RelationLockMode
impl Debug for RelationLockMode
impl Eq for RelationLockMode
Source§impl From<TableLockMode> for RelationLockMode
impl From<TableLockMode> for RelationLockMode
Source§fn from(mode: TableLockMode) -> Self
fn from(mode: TableLockMode) -> Self
Converts to this type from the input type.
Source§impl Ord for RelationLockMode
impl Ord for RelationLockMode
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for RelationLockMode
impl PartialEq for RelationLockMode
Source§impl PartialOrd for RelationLockMode
impl PartialOrd for RelationLockMode
impl StructuralPartialEq for RelationLockMode
Auto Trait Implementations§
impl Freeze for RelationLockMode
impl RefUnwindSafe for RelationLockMode
impl Send for RelationLockMode
impl Sync for RelationLockMode
impl Unpin for RelationLockMode
impl UnsafeUnpin for RelationLockMode
impl UnwindSafe for RelationLockMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more