Struct tc_transact::lock::Mutable [−][src]
A generic impl of Mutate
, for convenience.
Implementations
impl<T: Clone + Send> Mutable<T>
[src]
Trait Implementations
impl<T: Clone + Send> From<T> for Mutable<T>
[src]
impl<T: Clone + Send> Mutate for Mutable<T>
[src]
type Pending = T
The type of this state when pending a transaction commit.
fn diverge(&self, _txn_id: &TxnId) -> Self::Pending
[src]
fn converge<'life0, 'async_trait>(
&'life0 mut self,
new_value: Self::Pending
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
new_value: Self::Pending
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Auto Trait Implementations
impl<T> RefUnwindSafe for Mutable<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for Mutable<T>
impl<T> Sync for Mutable<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Mutable<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Mutable<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<F, T> CastFrom<F> for T where
T: From<F>,
T: From<F>,
pub fn cast_from(f: F) -> T
impl<T, F> CastInto<F> for T where
F: CastFrom<T>,
F: CastFrom<T>,
pub fn cast_into(self) -> F
impl<T> From<!> for T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<F> Match for F
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<F, T> TryCastFrom<F> for T where
T: CastFrom<F>,
T: CastFrom<F>,
pub fn can_cast_from(&F) -> bool
pub fn opt_cast_from(f: F) -> Option<T>
pub fn try_cast_from<Err, OnErr>(value: T, on_err: OnErr) -> Result<Self, Err> where
OnErr: FnOnce(&T) -> Err,
OnErr: FnOnce(&T) -> Err,
impl<F, T> TryCastInto<T> for F where
T: TryCastFrom<F>,
T: TryCastFrom<F>,
pub fn can_cast_into(&self) -> bool
pub fn opt_cast_into(self) -> Option<T>
pub fn try_cast_into<Err, OnErr>(self, on_err: OnErr) -> Result<T, Err> where
OnErr: FnOnce(&Self) -> Err,
OnErr: FnOnce(&Self) -> Err,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
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]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
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]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,