pub struct GeyserGrpcClient<F> {
pub health: HealthClient<InterceptedService<Channel, F>>,
pub geyser: GeyserClient<InterceptedService<Channel, F>>,
}Fields§
§health: HealthClient<InterceptedService<Channel, F>>§geyser: GeyserClient<InterceptedService<Channel, F>>Implementations§
Source§impl GeyserGrpcClient<()>
impl GeyserGrpcClient<()>
pub fn build_from_static(endpoint: &'static str) -> GeyserGrpcBuilder
Source§impl<F: Interceptor> GeyserGrpcClient<F>
impl<F: Interceptor> GeyserGrpcClient<F>
pub const fn new( health: HealthClient<InterceptedService<Channel, F>>, geyser: GeyserClient<InterceptedService<Channel, F>>, ) -> Self
pub async fn health_check( &mut self, ) -> GeyserGrpcClientResult<HealthCheckResponse>
pub async fn health_watch( &mut self, ) -> GeyserGrpcClientResult<impl Stream<Item = Result<HealthCheckResponse, Status>>>
pub async fn subscribe( &mut self, ) -> GeyserGrpcClientResult<(impl Sink<SubscribeRequest, Error = SendError>, impl Stream<Item = Result<SubscribeUpdate, Status>>)>
pub async fn subscribe_with_request( &mut self, request: Option<SubscribeRequest>, ) -> GeyserGrpcClientResult<(impl Sink<SubscribeRequest, Error = SendError>, impl Stream<Item = Result<SubscribeUpdate, Status>>)>
pub async fn subscribe_once( &mut self, request: SubscribeRequest, ) -> GeyserGrpcClientResult<impl Stream<Item = Result<SubscribeUpdate, Status>>>
pub async fn subscribe_preprocessed( &mut self, ) -> GeyserGrpcClientResult<(impl Sink<SubscribePreprocessedRequest, Error = SendError>, impl Stream<Item = Result<SubscribePreprocessedUpdate, Status>>)>
pub async fn subscribe_preprocessed_with_request( &mut self, request: Option<SubscribePreprocessedRequest>, ) -> GeyserGrpcClientResult<(impl Sink<SubscribePreprocessedRequest, Error = SendError>, impl Stream<Item = Result<SubscribePreprocessedUpdate, Status>>)>
pub async fn subscribe_preprocessed_once( &mut self, request: SubscribePreprocessedRequest, ) -> GeyserGrpcClientResult<impl Stream<Item = Result<SubscribePreprocessedUpdate, Status>>>
pub async fn subscribe_replay_info( &mut self, ) -> GeyserGrpcClientResult<SubscribeReplayInfoResponse>
pub async fn ping(&mut self, count: i32) -> GeyserGrpcClientResult<PongResponse>
pub async fn get_latest_blockhash( &mut self, commitment: Option<CommitmentLevel>, ) -> GeyserGrpcClientResult<GetLatestBlockhashResponse>
pub async fn get_block_height( &mut self, commitment: Option<CommitmentLevel>, ) -> GeyserGrpcClientResult<GetBlockHeightResponse>
pub async fn get_slot( &mut self, commitment: Option<CommitmentLevel>, ) -> GeyserGrpcClientResult<GetSlotResponse>
pub async fn is_blockhash_valid( &mut self, blockhash: String, commitment: Option<CommitmentLevel>, ) -> GeyserGrpcClientResult<IsBlockhashValidResponse>
pub async fn get_version( &mut self, ) -> GeyserGrpcClientResult<GetVersionResponse>
Auto Trait Implementations§
impl<F> !Freeze for GeyserGrpcClient<F>
impl<F> !RefUnwindSafe for GeyserGrpcClient<F>
impl<F> Send for GeyserGrpcClient<F>where
F: Send,
impl<F> Sync for GeyserGrpcClient<F>where
F: Sync,
impl<F> Unpin for GeyserGrpcClient<F>where
F: Unpin,
impl<F> !UnwindSafe for GeyserGrpcClient<F>
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> 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