pub struct ExecutionResponse<R> {
pub inner: R,
pub retries: usize,
pub address: Address,
}Expand description
Request execution response.
Fields§
§inner: RThe response from the request
retries: usizeHow many times the request was retried
address: AddressThe address of the node that was used for the request
Trait Implementations§
Source§impl<R: Clone> Clone for ExecutionResponse<R>
impl<R: Clone> Clone for ExecutionResponse<R>
Source§fn clone(&self) -> ExecutionResponse<R>
fn clone(&self) -> ExecutionResponse<R>
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<R: Debug> Debug for ExecutionResponse<R>
impl<R: Debug> Debug for ExecutionResponse<R>
Source§impl<R: Default> Default for ExecutionResponse<R>
Available on crate feature mocks only.
impl<R: Default> Default for ExecutionResponse<R>
Available on crate feature
mocks only.Source§impl<R, E> From<ExecutionResponse<R>> for ExecutionResult<R, E>
impl<R, E> From<ExecutionResponse<R>> for ExecutionResult<R, E>
Source§fn from(response: ExecutionResponse<R>) -> Self
fn from(response: ExecutionResponse<R>) -> Self
Converts to this type from the input type.
Source§impl<R> FromInner<R> for ExecutionResponse<R>where
Self: Default,
impl<R> FromInner<R> for ExecutionResponse<R>where
Self: Default,
Source§fn from_inner(inner: R) -> Self
fn from_inner(inner: R) -> Self
Create full wrapping object from inner type, using defaults for
fields that cannot be derived from the inner type. Read more
Source§impl<F, T> InnerInto<ExecutionResponse<T>> for ExecutionResponse<F>where
F: Into<T>,
impl<F, T> InnerInto<ExecutionResponse<T>> for ExecutionResponse<F>where
F: Into<T>,
Source§fn inner_into(self) -> ExecutionResponse<T>
fn inner_into(self) -> ExecutionResponse<T>
Convert inner response type without losing retries and address
Source§impl<R, I> IntoInner<I> for ExecutionResponse<R>where
R: Into<I>,
impl<R, I> IntoInner<I> for ExecutionResponse<R>where
R: Into<I>,
Source§fn into_inner(self) -> I
fn into_inner(self) -> I
Unwrap the response
Source§impl<R: Mockable> Mockable for ExecutionResponse<R>
impl<R: Mockable> Mockable for ExecutionResponse<R>
Source§impl<R: PartialEq> PartialEq for ExecutionResponse<R>
impl<R: PartialEq> PartialEq for ExecutionResponse<R>
Source§impl<R, RE, TR, IR, IRE> WrapToExecutionResult<R, RE, ExecutionResponse<TR>> for Result<IR, IRE>
impl<R, RE, TR, IR, IRE> WrapToExecutionResult<R, RE, ExecutionResponse<TR>> for Result<IR, IRE>
Source§fn wrap_to_execution_result(
self,
result: &ExecutionResponse<TR>,
) -> ExecutionResult<R, RE>
fn wrap_to_execution_result( self, result: &ExecutionResponse<TR>, ) -> ExecutionResult<R, RE>
Convert self (eg. some Result) to ExecutionResult, taking context information from
W (eg. ExecutionResponse). Read moreimpl<R: Eq> Eq for ExecutionResponse<R>
impl<R> StructuralPartialEq for ExecutionResponse<R>
Auto Trait Implementations§
impl<R> !Freeze for ExecutionResponse<R>
impl<R> RefUnwindSafe for ExecutionResponse<R>where
R: RefUnwindSafe,
impl<R> Send for ExecutionResponse<R>where
R: Send,
impl<R> Sync for ExecutionResponse<R>where
R: Sync,
impl<R> Unpin for ExecutionResponse<R>where
R: Unpin,
impl<R> UnwindSafe for ExecutionResponse<R>where
R: 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.