Struct optimistic_lock_coupling::OptimisticLockCouplingReadGuard[][src]

pub struct OptimisticLockCouplingReadGuard<'a, T: ?Sized + 'a> { /* fields omitted */ }

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]

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]

type Target = T

The resulting type after dereferencing.

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

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.