pub struct RetryableTransaction<S = ExistingTable> {
pub transaction: Transaction<S>,
pub error: Error,
}Expand description
A transaction that failed to commit due to a retryable error (e.g. IO error). The transaction
can be recovered with RetryableTransaction::transaction and retried without rebasing. The
associated error can be inspected via RetryableTransaction::error.
Fields§
§transaction: Transaction<S>The transaction that failed to commit due to a retryable error.
error: ErrorTransient error that caused the commit to fail.
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for RetryableTransaction<S>
impl<S = ExistingTable> !RefUnwindSafe for RetryableTransaction<S>
impl<S> Send for RetryableTransaction<S>where
S: Send,
impl<S = ExistingTable> !Sync for RetryableTransaction<S>
impl<S> Unpin for RetryableTransaction<S>where
S: Unpin,
impl<S> UnsafeUnpin for RetryableTransaction<S>
impl<S = ExistingTable> !UnwindSafe for RetryableTransaction<S>
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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