pub enum TransactionStateError {
Show 13 variants
AlreadyInProgress,
Completing(&'static str),
MustAbortBeforeReuse(String),
Fatal(String),
AppendWithoutBegin,
SendOffsetsWithoutBegin,
AbortRequired(String),
CommitRequiresAbort(String),
NoActiveTransaction,
ShutdownWithActiveTransaction,
ShutdownWhileCompleting(&'static str),
ShutdownAbortRequired(String),
ShutdownFatal(String),
}Expand description
Errors raised by the producer transaction state machine.
Variants§
AlreadyInProgress
A transaction is already open.
Completing(&'static str)
The transaction is already completing.
MustAbortBeforeReuse(String)
The transaction must be aborted before it can be used again.
Fatal(String)
The transaction is permanently failed.
AppendWithoutBegin
Records were sent before a transaction was started.
SendOffsetsWithoutBegin
Offsets were sent before a transaction was started.
AbortRequired(String)
The transaction needs an abort before more work can happen.
CommitRequiresAbort(String)
The transaction cannot be committed and must be aborted.
NoActiveTransaction
There is no active transaction to finish.
ShutdownWithActiveTransaction
Shutdown found an active transaction.
ShutdownWhileCompleting(&'static str)
Shutdown found a transaction completion in progress.
ShutdownAbortRequired(String)
Shutdown found a failed transaction that still needs aborting.
ShutdownFatal(String)
Shutdown found a fatal transaction error.
Trait Implementations§
Source§impl Debug for TransactionStateError
impl Debug for TransactionStateError
Source§impl Display for TransactionStateError
impl Display for TransactionStateError
Source§impl Error for TransactionStateError
impl Error for TransactionStateError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<TransactionStateError> for Error
impl From<TransactionStateError> for Error
Source§fn from(source: TransactionStateError) -> Self
fn from(source: TransactionStateError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TransactionStateError
impl RefUnwindSafe for TransactionStateError
impl Send for TransactionStateError
impl Sync for TransactionStateError
impl Unpin for TransactionStateError
impl UnsafeUnpin for TransactionStateError
impl UnwindSafe for TransactionStateError
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