Expand description
Transactional variable
Implementations
sourceimpl<T> TVar<T> where
T: Clone + Any + Send + Sync,
impl<T> TVar<T> where
T: Clone + Any + Send + Sync,
sourcepub fn new(data: T) -> Self
pub fn new(data: T) -> Self
Instantiates transactional variable for later use in a transaction.
sourcepub fn new_with_timeout(data: T, timeout: usize) -> Self
pub fn new_with_timeout(data: T, timeout: usize) -> Self
New transactional variable with overridden timeout for overriding timeout for specific transactional variable.
Highly discouraged for the daily use unless you have various code paths that can interfere over the variable that you instantiate.
Trait Implementations
Auto Trait Implementations
impl<T> !RefUnwindSafe for TVar<T>
impl<T> Send for TVar<T>
impl<T> Sync for TVar<T>
impl<T> Unpin for TVar<T> where
T: Unpin,
impl<T> !UnwindSafe for TVar<T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more