pub enum XandApiClientError {
TransportError {
source: Arc<Error>,
},
NotFound {
message: String,
},
BadRequest {
message: String,
},
OtherGrpcError {
source: Arc<Status>,
},
ProtoError {
source: XandApiProtoErrs,
},
InvalidIdInTransaction {
source: TransactionIdError,
},
BadReplyError {
message: String,
},
UnknownTransactionStatus,
InvalidAddress {
address: String,
},
InvalidCidrBlock {
cidr_block: String,
},
Timeout,
Unauthorized {
message: String,
},
}
Variants§
TransportError
NotFound
BadRequest
OtherGrpcError
Other grpc errors which are not represented as first-class items in this error enum
ProtoError
Fields
§
source: XandApiProtoErrs
InvalidIdInTransaction
Fields
§
source: TransactionIdError
BadReplyError
UnknownTransactionStatus
InvalidAddress
InvalidCidrBlock
Timeout
Fields
Trait Implementations§
Source§impl Clone for XandApiClientError
impl Clone for XandApiClientError
Source§fn clone(&self) -> XandApiClientError
fn clone(&self) -> XandApiClientError
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for XandApiClientError
impl Debug for XandApiClientError
Source§impl Display for XandApiClientError
impl Display for XandApiClientError
Source§impl Error for XandApiClientError
impl Error for XandApiClientError
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§impl ErrorCompat for XandApiClientError
impl ErrorCompat for XandApiClientError
Source§impl From<Error> for XandApiClientError
impl From<Error> for XandApiClientError
Source§impl From<Status> for XandApiClientError
impl From<Status> for XandApiClientError
Source§impl From<TransactionIdError> for XandApiClientError
impl From<TransactionIdError> for XandApiClientError
Source§fn from(error: TransactionIdError) -> Self
fn from(error: TransactionIdError) -> Self
Converts to this type from the input type.
Source§impl From<XandApiProtoErrs> for XandApiClientError
impl From<XandApiProtoErrs> for XandApiClientError
Source§fn from(e: XandApiProtoErrs) -> Self
fn from(e: XandApiProtoErrs) -> Self
Converts to this type from the input type.
Source§impl<__T0> IntoError<XandApiClientError> for BadReplyError<__T0>
impl<__T0> IntoError<XandApiClientError> for BadReplyError<__T0>
Source§fn into_error(self, error: Self::Source) -> XandApiClientError
fn into_error(self, error: Self::Source) -> XandApiClientError
Combine the information to produce the error
Source§impl<__T0> IntoError<XandApiClientError> for BadRequest<__T0>
impl<__T0> IntoError<XandApiClientError> for BadRequest<__T0>
Source§fn into_error(self, error: Self::Source) -> XandApiClientError
fn into_error(self, error: Self::Source) -> XandApiClientError
Combine the information to produce the error
Source§impl<__T0> IntoError<XandApiClientError> for InvalidAddress<__T0>
impl<__T0> IntoError<XandApiClientError> for InvalidAddress<__T0>
Source§fn into_error(self, error: Self::Source) -> XandApiClientError
fn into_error(self, error: Self::Source) -> XandApiClientError
Combine the information to produce the error
Source§impl<__T0> IntoError<XandApiClientError> for InvalidCidrBlock<__T0>
impl<__T0> IntoError<XandApiClientError> for InvalidCidrBlock<__T0>
Source§fn into_error(self, error: Self::Source) -> XandApiClientError
fn into_error(self, error: Self::Source) -> XandApiClientError
Combine the information to produce the error
Source§impl<__T0> IntoError<XandApiClientError> for NotFound<__T0>
impl<__T0> IntoError<XandApiClientError> for NotFound<__T0>
Source§fn into_error(self, error: Self::Source) -> XandApiClientError
fn into_error(self, error: Self::Source) -> XandApiClientError
Combine the information to produce the error
Source§impl IntoError<XandApiClientError> for OtherGrpcError
impl IntoError<XandApiClientError> for OtherGrpcError
Source§fn into_error(self, error: Self::Source) -> XandApiClientError
fn into_error(self, error: Self::Source) -> XandApiClientError
Combine the information to produce the error
Source§impl IntoError<XandApiClientError> for ProtoError
impl IntoError<XandApiClientError> for ProtoError
Source§type Source = XandApiProtoErrs
type Source = XandApiProtoErrs
The underlying error
Source§fn into_error(self, error: Self::Source) -> XandApiClientError
fn into_error(self, error: Self::Source) -> XandApiClientError
Combine the information to produce the error
Source§impl IntoError<XandApiClientError> for Timeout
impl IntoError<XandApiClientError> for Timeout
Source§fn into_error(self, error: Self::Source) -> XandApiClientError
fn into_error(self, error: Self::Source) -> XandApiClientError
Combine the information to produce the error
Source§impl IntoError<XandApiClientError> for TransportError
impl IntoError<XandApiClientError> for TransportError
Source§fn into_error(self, error: Self::Source) -> XandApiClientError
fn into_error(self, error: Self::Source) -> XandApiClientError
Combine the information to produce the error
Source§fn into_error(self, error: Self::Source) -> XandApiClientError
fn into_error(self, error: Self::Source) -> XandApiClientError
Combine the information to produce the error
Source§impl IntoError<XandApiClientError> for UnknownTransactionStatus
impl IntoError<XandApiClientError> for UnknownTransactionStatus
Source§fn into_error(self, error: Self::Source) -> XandApiClientError
fn into_error(self, error: Self::Source) -> XandApiClientError
Combine the information to produce the error
Auto Trait Implementations§
impl Freeze for XandApiClientError
impl !RefUnwindSafe for XandApiClientError
impl Send for XandApiClientError
impl Sync for XandApiClientError
impl Unpin for XandApiClientError
impl !UnwindSafe for XandApiClientError
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request