pub struct SequencePositionGuard<'a> { /* private fields */ }Expand description
The position of one sequence, held so that no other session or process reads or changes it.
Implementations§
Source§impl SequencePositionGuard<'_>
impl SequencePositionGuard<'_>
pub fn recorded(&self) -> Option<RecordedSequencePosition>
Sourcepub fn recordable(&self) -> bool
pub fn recordable(&self) -> bool
Whether a position can be recorded. A sequence without room for one keeps its durable record exact instead.
Sourcepub fn crowded(&self) -> bool
pub fn crowded(&self) -> bool
Whether the positions of sequences that no longer exist should be dropped before this sequence takes a slot.
pub fn record(&mut self, position: SequencePosition) -> Result<(), SQLError>
Trait Implementations§
Source§impl Drop for SequencePositionGuard<'_>
impl Drop for SequencePositionGuard<'_>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for SequencePositionGuard<'a>
impl<'a> !Send for SequencePositionGuard<'a>
impl<'a> !UnwindSafe for SequencePositionGuard<'a>
impl<'a> Freeze for SequencePositionGuard<'a>
impl<'a> Sync for SequencePositionGuard<'a>
impl<'a> Unpin for SequencePositionGuard<'a>
impl<'a> UnsafeUnpin for SequencePositionGuard<'a>
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
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