pub struct ExecutionError<E> {
pub inner: E,
pub retries: usize,
pub address: Option<Address>,
}Expand description
Error happened during request execution.
Fields§
§inner: EThe cause of error
retries: usizeHow many times the request was retried
address: Option<Address>The address of the node that was used for the request
Trait Implementations§
Source§impl<E: CanRetry> CanRetry for ExecutionError<E>
impl<E: CanRetry> CanRetry for ExecutionError<E>
Source§fn is_no_available_addresses(&self) -> bool
fn is_no_available_addresses(&self) -> bool
Returns true if this error represents a “no available addresses” condition. Read more
Source§fn is_node_failure(&self) -> bool
fn is_node_failure(&self) -> bool
👎Deprecated: Use !can_retry() instead
Get boolean flag that indicates if the error is retryable. Read more
Source§impl<E: Clone> Clone for ExecutionError<E>
impl<E: Clone> Clone for ExecutionError<E>
Source§fn clone(&self) -> ExecutionError<E>
fn clone(&self) -> ExecutionError<E>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<E: Debug> Debug for ExecutionError<E>
impl<E: Debug> Debug for ExecutionError<E>
Source§impl<E> Display for ExecutionError<E>where
E: Display,
impl<E> Display for ExecutionError<E>where
E: Display,
Source§impl<E> Error for ExecutionError<E>
impl<E> Error for ExecutionError<E>
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<R, E> From<ExecutionError<E>> for ExecutionResult<R, E>
impl<R, E> From<ExecutionError<E>> for ExecutionResult<R, E>
Source§fn from(e: ExecutionError<E>) -> Self
fn from(e: ExecutionError<E>) -> Self
Converts to this type from the input type.
Source§impl<F, T> InnerInto<ExecutionError<T>> for ExecutionError<F>where
F: Into<T>,
impl<F, T> InnerInto<ExecutionError<T>> for ExecutionError<F>where
F: Into<T>,
Source§fn inner_into(self) -> ExecutionError<T>
fn inner_into(self) -> ExecutionError<T>
Convert inner error type without losing retries and address
Source§impl<E, I> IntoInner<I> for ExecutionError<E>where
E: Into<I>,
impl<E, I> IntoInner<I> for ExecutionError<E>where
E: Into<I>,
Source§fn into_inner(self) -> I
fn into_inner(self) -> I
Unwrap the error cause
Source§impl<E: Mockable> Mockable for ExecutionError<E>
impl<E: Mockable> Mockable for ExecutionError<E>
Source§impl<E: PartialEq> PartialEq for ExecutionError<E>
impl<E: PartialEq> PartialEq for ExecutionError<E>
impl<E: Eq> Eq for ExecutionError<E>
Auto Trait Implementations§
impl<E> !Freeze for ExecutionError<E>
impl<E> RefUnwindSafe for ExecutionError<E>where
E: RefUnwindSafe,
impl<E> Send for ExecutionError<E>where
E: Send,
impl<E> Sync for ExecutionError<E>where
E: Sync,
impl<E> Unpin for ExecutionError<E>where
E: Unpin,
impl<E> UnwindSafe for ExecutionError<E>where
E: UnwindSafe,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§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, U> IntoPlatformVersioned<U> for Twhere
U: FromPlatformVersioned<T>,
impl<T, U> IntoPlatformVersioned<U> for Twhere
U: FromPlatformVersioned<T>,
Source§fn into_platform_versioned(self, platform_version: &PlatformVersion) -> U
fn into_platform_versioned(self, platform_version: &PlatformVersion) -> U
Performs the conversion.
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].Source§impl<T, U> TryIntoPlatformVersioned<U> for Twhere
U: TryFromPlatformVersioned<T>,
impl<T, U> TryIntoPlatformVersioned<U> for Twhere
U: TryFromPlatformVersioned<T>,
Source§type Error = <U as TryFromPlatformVersioned<T>>::Error
type Error = <U as TryFromPlatformVersioned<T>>::Error
The type returned in the event of a conversion error.
Source§fn try_into_platform_versioned(
self,
platform_version: &PlatformVersion,
) -> Result<U, <U as TryFromPlatformVersioned<T>>::Error>
fn try_into_platform_versioned( self, platform_version: &PlatformVersion, ) -> Result<U, <U as TryFromPlatformVersioned<T>>::Error>
Performs the conversion.
§impl<T, U> TryIntoVersioned<U> for Twhere
U: TryFromVersioned<T>,
impl<T, U> TryIntoVersioned<U> for Twhere
U: TryFromVersioned<T>,
§type Error = <U as TryFromVersioned<T>>::Error
type Error = <U as TryFromVersioned<T>>::Error
The type returned in the event of a conversion error.
§fn try_into_versioned(
self,
grove_version: &GroveVersion,
) -> Result<U, <U as TryFromVersioned<T>>::Error>
fn try_into_versioned( self, grove_version: &GroveVersion, ) -> Result<U, <U as TryFromVersioned<T>>::Error>
Performs the conversion.