Struct stronghold_rlu::rlu::RLU
source · [−]pub struct RLU<T> where
T: Clone, { /* private fields */ }
Expand description
Implementations
sourceimpl<T> RLU<T> where
T: Clone,
impl<T> RLU<T> where
T: Clone,
sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new RLU
with a RLUStrategy::Retry
strategy.
sourcepub fn with_strategy(strategy: RLUStrategy) -> Self
pub fn with_strategy(strategy: RLUStrategy) -> Self
Creates a new RLU
with a defined strategy for handling the results of executing
transactional functions.
pub fn create(&self, data: T) -> RLUVar<T>
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for RLU<T>
impl<T> Send for RLU<T> where
T: Send + Sync,
impl<T> Sync for RLU<T> where
T: Send + Sync,
impl<T> Unpin for RLU<T>
impl<T> UnwindSafe for RLU<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