pub enum DapiClientError {
Transport(TransportError),
NoAvailableAddresses,
NoAvailableAddressesToRetry(Box<TransportError>),
AddressList(AddressListError),
Mock(MockError),
}Expand description
General DAPI request error type.
Variants§
Transport(TransportError)
The error happened on transport layer
NoAvailableAddresses
There are no valid DAPI addresses to use.
NoAvailableAddressesToRetry(Box<TransportError>)
All available addresses have been exhausted (banned due to errors). Contains the last meaningful error that caused addresses to be banned.
AddressList(AddressListError)
AddressListError errors
Mock(MockError)
Error happened in mock client
Trait Implementations§
Source§impl CanRetry for DapiClientError
impl CanRetry for DapiClientError
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 Clone for DapiClientError
impl Clone for DapiClientError
Source§fn clone(&self) -> DapiClientError
fn clone(&self) -> DapiClientError
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 Debug for DapiClientError
impl Debug for DapiClientError
Source§impl<'de> Deserialize<'de> for DapiClientError
impl<'de> Deserialize<'de> for DapiClientError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for DapiClientError
impl Display for DapiClientError
Source§impl Error for DapiClientError
impl Error for DapiClientError
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<MockError> for DapiClientError
impl From<MockError> for DapiClientError
Source§impl Mockable for DapiClientError
Serialization of DapiClientError.
impl Mockable for DapiClientError
Serialization of DapiClientError.
We need to do manual serialization because of the generic type parameter which doesn’t support serde derive.
Auto Trait Implementations§
impl Freeze for DapiClientError
impl !RefUnwindSafe for DapiClientError
impl Send for DapiClientError
impl Sync for DapiClientError
impl Unpin for DapiClientError
impl !UnwindSafe for DapiClientError
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<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.