Struct tc_transact::lock::TxnLockWriteGuard [−][src]
pub struct TxnLockWriteGuard<T: Mutate> { /* fields omitted */ }
Expand description
An exclusive write lock for a transactional state.
Implementations
impl<T: Mutate> TxnLockWriteGuard<T>
[src]
impl<T: Mutate> TxnLockWriteGuard<T>
[src]pub fn downgrade(self, txn_id: &TxnId) -> TxnLockReadFuture<'_, T>ⓘNotable traits for TxnLockReadFuture<'a, T>
impl<'a, T: Mutate> Future for TxnLockReadFuture<'a, T> type Output = TCResult<TxnLockReadGuard<T>>;
[src]
pub fn downgrade(self, txn_id: &TxnId) -> TxnLockReadFuture<'_, T>ⓘNotable traits for TxnLockReadFuture<'a, T>
impl<'a, T: Mutate> Future for TxnLockReadFuture<'a, T> type Output = TCResult<TxnLockReadGuard<T>>;
[src]Downgrade this write lock into a read lock;
Trait Implementations
impl<T: Mutate> Deref for TxnLockWriteGuard<T>
[src]
impl<T: Mutate> Deref for TxnLockWriteGuard<T>
[src]impl<T: Mutate> DerefMut for TxnLockWriteGuard<T>
[src]
impl<T: Mutate> DerefMut for TxnLockWriteGuard<T>
[src]Auto Trait Implementations
impl<T> RefUnwindSafe for TxnLockWriteGuard<T>
impl<T> Send for TxnLockWriteGuard<T>
impl<T> Sync for TxnLockWriteGuard<T>
impl<T> Unpin for TxnLockWriteGuard<T>
impl<T> UnwindSafe for TxnLockWriteGuard<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>,