pub enum TridentClientBuilderError {
Transport(Error),
Grpc(Status),
MissingDepositContract(Domain),
MissingDeliveryContract(Domain),
ChainHandlerBuild(ChainHandlerBuildError),
UnregisteredDeployment {
domain: Domain,
},
}Expand description
Errors returned while building and connecting a TridentClient.
Covers transport and gRPC failures, missing contract addresses in the delivery service’s deployment response, per-chain-family build failures, and mismatches between locally registered domains and server-reported deployments.
Variants§
Transport(Error)
gRPC transport could not be established against the configured endpoint.
Grpc(Status)
The delivery service rejected the list_deployments call.
MissingDepositContract(Domain)
The server’s deployment response for domain was missing its source
deposit_contract address.
MissingDeliveryContract(Domain)
The server’s deployment response for domain was missing its
destination delivery_contract address.
ChainHandlerBuild(ChainHandlerBuildError)
A chain-family-specific handler builder rejected the deployment data (e.g. address decoding failure).
UnregisteredDeployment
A domain was registered locally but the server returned no matching deployment for it.
Trait Implementations§
Source§impl Debug for TridentClientBuilderError
impl Debug for TridentClientBuilderError
Source§impl Display for TridentClientBuilderError
impl Display for TridentClientBuilderError
Source§impl Error for TridentClientBuilderError
impl Error for TridentClientBuilderError
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()
Source§impl From<Error> for TridentClientBuilderError
impl From<Error> for TridentClientBuilderError
Auto Trait Implementations§
impl !RefUnwindSafe for TridentClientBuilderError
impl !UnwindSafe for TridentClientBuilderError
impl Freeze for TridentClientBuilderError
impl Send for TridentClientBuilderError
impl Sync for TridentClientBuilderError
impl Unpin for TridentClientBuilderError
impl UnsafeUnpin for TridentClientBuilderError
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