pub struct GrpcClient<F> {
pub geyser: GeyserClient<InterceptedService<Channel, F>>,
}Fields§
§geyser: GeyserClient<InterceptedService<Channel, F>>Implementations§
Source§impl GrpcClient<()>
impl GrpcClient<()>
pub fn build_from_static(endpoint: &'static str) -> GrpcClientBuilder
Source§impl<F: Interceptor> GrpcClient<F>
impl<F: Interceptor> GrpcClient<F>
pub const fn new(geyser: GeyserClient<InterceptedService<Channel, F>>) -> Self
pub async fn subscribe_dragons_mouth( &mut self, ) -> Result<(impl Sink<SubscribeRequest, Error = SendError>, GrpcClientStream), Status>
pub async fn subscribe_dragons_mouth_once( &mut self, request: SubscribeRequest, ) -> Result<GrpcClientStream, Status>
pub async fn subscribe_accounts( &mut self, ) -> Result<(UnboundedSender<SubscribeAccountsRequest>, GrpcClientStream), Status>
pub async fn subscribe_richat( &mut self, request: GrpcSubscribeRequest, ) -> Result<GrpcClientStream, Status>
pub async fn subscribe_replay_info( &mut self, ) -> Result<SubscribeReplayInfoResponse, Status>
pub async fn ping(&mut self, count: i32) -> Result<PongResponse, Status>
pub async fn get_latest_blockhash( &mut self, commitment: Option<CommitmentLevel>, ) -> Result<GetLatestBlockhashResponse, Status>
pub async fn get_block_height( &mut self, commitment: Option<CommitmentLevel>, ) -> Result<GetBlockHeightResponse, Status>
pub async fn get_slot( &mut self, commitment: Option<CommitmentLevel>, ) -> Result<GetSlotResponse, Status>
pub async fn is_blockhash_valid( &mut self, blockhash: String, commitment: Option<CommitmentLevel>, ) -> Result<IsBlockhashValidResponse, Status>
pub async fn get_version(&mut self) -> Result<GetVersionResponse, Status>
Trait Implementations§
Auto Trait Implementations§
impl<F> !Freeze for GrpcClient<F>
impl<F> !RefUnwindSafe for GrpcClient<F>
impl<F> Send for GrpcClient<F>where
F: Send,
impl<F> Sync for GrpcClient<F>where
F: Sync,
impl<F> Unpin for GrpcClient<F>where
F: Unpin,
impl<F> UnsafeUnpin for GrpcClient<F>where
F: UnsafeUnpin,
impl<F> !UnwindSafe for GrpcClient<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