Struct tc_transact::lock::TxnLockReadGuard[][src]

pub struct TxnLockReadGuard<T: Mutate> { /* fields omitted */ }
Expand description

An immutable read guard for a transactional state.

Implementations

impl<T: Mutate> TxnLockReadGuard<T>[src]

pub fn upgrade(self) -> TxnLockWriteFuture<T>

Notable traits for TxnLockWriteFuture<T>

impl<T: Mutate> Future for TxnLockWriteFuture<T> type Output = TCResult<TxnLockWriteGuard<T>>;
[src]

Upgrade this read lock to a write lock.

Trait Implementations

impl<T: Mutate> Deref for TxnLockReadGuard<T>[src]

type Target = <T as Mutate>::Pending

The resulting type after dereferencing.

fn deref(&self) -> &<T as Mutate>::Pending[src]

Dereferences the value.

impl<T: Mutate> Drop for TxnLockReadGuard<T>[src]

fn drop(&mut self)[src]

Executes the destructor for this type. Read more

Auto Trait Implementations

impl<T> RefUnwindSafe for TxnLockReadGuard<T>

impl<T> Send for TxnLockReadGuard<T>

impl<T> Sync for TxnLockReadGuard<T>

impl<T> Unpin for TxnLockReadGuard<T>

impl<T> UnwindSafe for TxnLockReadGuard<T>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<F, T> CastFrom<F> for T where
    T: From<F>, 

pub fn cast_from(f: F) -> T

impl<T, F> CastInto<F> for T where
    F: CastFrom<T>, 

pub fn cast_into(self) -> F

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

impl<F> Match for F

fn matches<T>(&self) -> bool where
    T: TryCastFrom<Self>, 

Returns true if self can be cast into the target type T.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<F, T> TryCastFrom<F> for T where
    T: CastFrom<F>, 

pub fn can_cast_from(&F) -> bool

Test if value can be cast into Self.

pub fn opt_cast_from(f: F) -> Option<T>

Returns Some(Self) if the source value can be cast into Self, otherwise None.

fn try_cast_from<Err, OnErr>(value: T, on_err: OnErr) -> Result<Self, Err> where
    OnErr: FnOnce(&T) -> Err, 

Returns Ok(Self) if the source value can be cast into Self, otherwise calls on_err.

impl<F, T> TryCastInto<T> for F where
    T: TryCastFrom<F>, 

pub fn can_cast_into(&self) -> bool

Test if self can be cast into T.

pub fn opt_cast_into(self) -> Option<T>

Returns Some(T) if self can be cast into T, otherwise None.

fn try_cast_into<Err, OnErr>(self, on_err: OnErr) -> Result<T, Err> where
    OnErr: FnOnce(&Self) -> Err, 

Returns Ok(T) if self can be cast into T, otherwise calls on_err.

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

pub fn vzip(self) -> V