pub enum TridentClientError {
MissingChain {
domain: Domain,
},
ChainHandler(ChainHandlerError),
Grpc(Status),
EmptyResponse,
SpendRejected {
reason: String,
},
ProtoConversion(ProtoConversionError),
ZeroDepositAmount,
MissingDeployment {
domain: Domain,
},
}Expand description
Errors returned by TridentClient operations.
Covers local chain configuration and input validation, proto decoding failures, delivery-service gRPC failures, deployment-lookup misses, and server-side spend rejections.
Variants§
MissingChain
No chain handler was registered for domain when the client was built.
ChainHandler(ChainHandlerError)
A chain-family-specific operation (signing, deposit preparation) failed.
Grpc(Status)
The delivery service rejected the gRPC call at the transport or status layer.
EmptyResponse
The delivery service returned a response with a required field unset.
SpendRejected
The delivery service accepted the call but rejected the spend intent with a human-readable reason.
ProtoConversion(ProtoConversionError)
Encoding to or decoding from the wire proto representation failed.
ZeroDepositAmount
TridentClient::deposit was called with amount == 0.
MissingDeployment
The delivery service did not report a deployment for domain, so
per-deployment data (e.g. expiry minimums) could not be resolved.
Trait Implementations§
Source§impl Debug for TridentClientError
impl Debug for TridentClientError
Source§impl Display for TridentClientError
impl Display for TridentClientError
Source§impl Error for TridentClientError
impl Error for TridentClientError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for TridentClientError
impl !UnwindSafe for TridentClientError
impl Freeze for TridentClientError
impl Send for TridentClientError
impl Sync for TridentClientError
impl Unpin for TridentClientError
impl UnsafeUnpin for TridentClientError
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
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§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>
T in a tonic::Request