Struct optimistic_lock_coupling::OptimisticLockCouplingReadGuard [−][src]
Usage:
after getting the guard you can do what ever you want with Deref
but after usage you MUST call try_sync
if fails you must redo the hole function or other sync method to ensure the data you read is correct.
Implementations
impl<'a, T: ?Sized> OptimisticLockCouplingReadGuard<'a, T>
[src]
pub fn new(
lock: &'a OptimisticLockCoupling<T>
) -> OptimisticLockCouplingResult<Self>
[src]
lock: &'a OptimisticLockCoupling<T>
) -> OptimisticLockCouplingResult<Self>
impl<T: ?Sized> OptimisticLockCouplingReadGuard<'_, T>
[src]
pub fn try_sync(self) -> OptimisticLockCouplingResult<()>
[src]
Consume self return retry or not
suggest to use read_txn
Trait Implementations
impl<T: Debug> Debug for OptimisticLockCouplingReadGuard<'_, T>
[src]
impl<T: ?Sized> Deref for OptimisticLockCouplingReadGuard<'_, T>
[src]
impl<T: Debug + Display> Display for OptimisticLockCouplingReadGuard<'_, T>
[src]
impl<T: ?Sized> !Send for OptimisticLockCouplingReadGuard<'_, T>
[src]
Auto Trait Implementations
impl<'a, T> !RefUnwindSafe for OptimisticLockCouplingReadGuard<'a, T>
impl<'a, T: ?Sized> Sync for OptimisticLockCouplingReadGuard<'a, T> where
T: Send + Sync,
T: Send + Sync,
impl<'a, T: ?Sized> Unpin for OptimisticLockCouplingReadGuard<'a, T>
impl<'a, T> !UnwindSafe for OptimisticLockCouplingReadGuard<'a, T>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,