Struct tc_transact::lock::TxnLockWriteGuard [−][src]
pub struct TxnLockWriteGuard<T: Mutate> { /* fields omitted */ }
Expand description
An exclusive write lock for a transactional state.
Implementations
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>>;
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>>;Downgrade this write lock into a read lock;
Trait Implementations
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
Mutably borrows from an owned value. Read more
pub fn cast_into(self) -> Ftype Output = T
type Output = TShould always be Self
pub fn can_cast_from(&F) -> bool
pub fn can_cast_from(&F) -> boolTest 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.
pub fn can_cast_into(&self) -> bool
pub fn can_cast_into(&self) -> boolTest 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.
pub fn vzip(self) -> V