pub struct TransactionExecutor { /* private fields */ }
Expand description
Tracks whether a given executor is “dirty” and needs to updated in the executors cache
Implementations§
Source§impl TransactionExecutor
impl TransactionExecutor
Sourcepub fn new_cached(executor: Arc<dyn Executor>) -> Self
pub fn new_cached(executor: Arc<dyn Executor>) -> Self
Wraps an executor and tracks that it doesn’t need to be updated in the executors cache.
Sourcepub fn new_miss(executor: Arc<dyn Executor>) -> Self
pub fn new_miss(executor: Arc<dyn Executor>) -> Self
Wraps an executor and tracks that it needs to be updated in the executors cache.
Sourcepub fn new_updated(executor: Arc<dyn Executor>) -> Self
pub fn new_updated(executor: Arc<dyn Executor>) -> Self
Wraps an executor and tracks that it needs to be updated in the executors cache only if the transaction succeeded.
pub fn is_missing(&self) -> bool
pub fn is_updated(&self) -> bool
pub fn get(&self) -> Arc<dyn Executor>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TransactionExecutor
impl !RefUnwindSafe for TransactionExecutor
impl Send for TransactionExecutor
impl Sync for TransactionExecutor
impl Unpin for TransactionExecutor
impl !UnwindSafe for TransactionExecutor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more