pub struct GrpcHealthCheckQuerier;Expand description
GrpcHealthCheckQuerier connects to a list of gRPC endpoints
and returns the URL of the first one to answer.
Trait Implementations§
source§impl QueryContext for GrpcHealthCheckQuerier
impl QueryContext for GrpcHealthCheckQuerier
source§fn query_error(chain_name: String) -> Self::QueryError
fn query_error(chain_name: String) -> Self::QueryError
Return an error NoHealthyGrpc when query_healthy fails
source§fn query<'async_trait>(
uri: Self::QueryInput,
) -> Pin<Box<dyn Future<Output = Result<Self::QueryOutput, Self::QueryError>> + Send + 'async_trait>>where
Self: 'async_trait,
fn query<'async_trait>(
uri: Self::QueryInput,
) -> Pin<Box<dyn Future<Output = Result<Self::QueryOutput, Self::QueryError>> + Send + 'async_trait>>where
Self: 'async_trait,
Query the endpoint and return the GRPC url
source§fn query_healthy<'async_trait>(
chain_name: String,
urls: Vec<Self::QueryInput>,
) -> Pin<Box<dyn Future<Output = Result<Self::QueryOutput, Self::QueryError>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
fn query_healthy<'async_trait>(
chain_name: String,
urls: Vec<Self::QueryInput>,
) -> Pin<Box<dyn Future<Output = Result<Self::QueryOutput, Self::QueryError>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
Query every endpoint from a list of urls and return the output of the first one to answer. Read more
source§impl QueryTypes for GrpcHealthCheckQuerier
impl QueryTypes for GrpcHealthCheckQuerier
Expected Input and Output to query a GRPC endpoint
§type QueryInput = Uri
type QueryInput = Uri
QueryInput represents the data needed to query a node. It is typically a URL§type QueryOutput = Url
type QueryOutput = Url
QueryOutput represents the data returned by your query§type QueryError = RegistryError
type QueryError = RegistryError
QueryOutput represents the error returned when a query failsAuto Trait Implementations§
impl Freeze for GrpcHealthCheckQuerier
impl RefUnwindSafe for GrpcHealthCheckQuerier
impl Send for GrpcHealthCheckQuerier
impl Sync for GrpcHealthCheckQuerier
impl Unpin for GrpcHealthCheckQuerier
impl UnwindSafe for GrpcHealthCheckQuerier
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> FutureExt for T
impl<T> FutureExt for T
source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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>
Converts
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>
Converts
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>
Wrap the input message
T in a tonic::Request