pub enum RuntimeCommitError {
Runtime(RuntimeError),
Driver {
certainty: CommitFailureCertainty,
message: String,
},
}Expand description
A classified result available to recovery-aware internal commit callers.
RuntimeTransaction::commit retains the released RuntimeError
surface. Callers that need durability certainty can opt into
RuntimeTransaction::commit_classified without adding a variant to that
released, exhaustively matchable enum.
Variants§
Runtime(RuntimeError)
A transaction lifecycle error before the driver attempted a commit.
Driver
A driver commit failure with explicit durability certainty.
Fields
certainty: CommitFailureCertaintyWhether the failed response proves that the commit was aborted.
Implementations§
Source§impl RuntimeCommitError
impl RuntimeCommitError
Sourcepub fn failure(&self) -> Failure
pub fn failure(&self) -> Failure
Value-free outcome. Released string carriers have no staged operation index.
Sourcepub fn into_runtime_error(self) -> RuntimeError
pub fn into_runtime_error(self) -> RuntimeError
Convert to the released transaction-error surface.
This discards certainty while retaining the value-free description. A transaction error alone never proves that retrying the write is safe.
Trait Implementations§
Source§impl Debug for RuntimeCommitError
impl Debug for RuntimeCommitError
Source§impl Display for RuntimeCommitError
impl Display for RuntimeCommitError
Source§impl Error for RuntimeCommitError
impl Error for RuntimeCommitError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<RuntimeError> for RuntimeCommitError
impl From<RuntimeError> for RuntimeCommitError
Source§fn from(source: RuntimeError) -> Self
fn from(source: RuntimeError) -> Self
Auto Trait Implementations§
impl Freeze for RuntimeCommitError
impl RefUnwindSafe for RuntimeCommitError
impl Send for RuntimeCommitError
impl Sync for RuntimeCommitError
impl Unpin for RuntimeCommitError
impl UnsafeUnpin for RuntimeCommitError
impl UnwindSafe for RuntimeCommitError
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
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> ⓘ
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> ⓘ
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request