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]
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]
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]
impl<T: Mutate> Deref for TxnLockReadGuard<T>
[src]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> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T, F> CastInto<F> for T where
F: CastFrom<T>,
impl<T, F> CastInto<F> for T where
F: CastFrom<T>,
pub fn cast_into(self) -> F
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<F, T> TryCastFrom<F> for T where
T: CastFrom<F>,
impl<F, T> TryCastFrom<F> for T where
T: CastFrom<F>,
pub fn can_cast_from(&F) -> bool
pub fn can_cast_from(&F) -> bool
Test if value
can be cast into Self
.
pub fn opt_cast_from(f: F) -> Option<T>
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,
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>,
impl<F, T> TryCastInto<T> for F where
T: TryCastFrom<F>,
pub fn can_cast_into(&self) -> bool
pub fn can_cast_into(&self) -> bool
Test if self
can be cast into T
.
pub fn opt_cast_into(self) -> Option<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,
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<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,