Enum transact::execution::adapter::ExecutionAdapterError
source · pub enum ExecutionAdapterError {
TimeoutError(Box<TransactionPair>),
RoutingError(Box<TransactionPair>),
GeneralExecutionError(Box<dyn Error + Send>),
}
Expand description
During processing of the Transaction, something unexpected happened.
The Executor
immediately retries the TransactionPair
for all of these
errors.
Variants§
TimeoutError(Box<TransactionPair>)
Executing the transaction took too much time and so abort
RoutingError(Box<TransactionPair>)
This ExecutionAdaptor does not have the capability to process the TransactionPair
given to it. This can happen due to a timing error in routing the TransactionPair
to the ExecutionAdapter
.
GeneralExecutionError(Box<dyn Error + Send>)
Trait Implementations§
source§impl Debug for ExecutionAdapterError
impl Debug for ExecutionAdapterError
source§impl Display for ExecutionAdapterError
impl Display for ExecutionAdapterError
source§impl Error for ExecutionAdapterError
impl Error for ExecutionAdapterError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
Auto Trait Implementations§
impl !RefUnwindSafe for ExecutionAdapterError
impl Send for ExecutionAdapterError
impl !Sync for ExecutionAdapterError
impl Unpin for ExecutionAdapterError
impl !UnwindSafe for ExecutionAdapterError
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> IntoSql for T
impl<T> IntoSql for T
source§fn into_sql<T>(self) -> Self::Expressionwhere
Self: AsExpression<T> + Sized,
fn into_sql<T>(self) -> Self::Expressionwhere
Self: AsExpression<T> + Sized,
Convert
self
to an expression for Diesel’s query builder. Read moresource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
Convert
&self
to an expression for Diesel’s query builder. Read more§impl<T> SafeBorrow<T> for Twhere
T: ?Sized,
impl<T> SafeBorrow<T> for Twhere
T: ?Sized,
§fn borrow_replacement(ptr: &T) -> &T
fn borrow_replacement(ptr: &T) -> &T
Given
ptr
, which was obtained from a prior call to Self::borrow()
,
return a value with the same nominal lifetime which is guaranteed to
survive mutations to Self
. Read more