pub struct Client<T> {
inner: WatchClient<T>,
}
Fields§
§inner: WatchClient<T>
Implementations§
source§impl<T> Client<T>where
T: GrpcService<BoxBody>,
T::ResponseBody: Send + Sync + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> Client<T>where T: GrpcService<BoxBody>, T::ResponseBody: Send + Sync + 'static, <T::ResponseBody as Body>::Error: Into<StdError> + Send,
sourcepub async fn block_subscription(&mut self) -> Result<BlockSubscription, Error>
pub async fn block_subscription(&mut self) -> Result<BlockSubscription, Error>
Establishes a subscription for blocks that have been issued by the node or received from the p2p network.
The client can use the stream that the returned future resolves to as a long-lived subscription handle.
sourcepub async fn tip_subscription(&mut self) -> Result<TipSubscription, Error>
pub async fn tip_subscription(&mut self) -> Result<TipSubscription, Error>
Establishes a subscription for tip change announcements by the node.
The client can use the stream that the returned future resolves to as a long-lived subscription handle.
pub async fn sync_multiverse( &mut self, from: impl IntoIterator<Item = &BlockId> ) -> Result<SyncMultiverseStream, Error>
Auto Trait Implementations§
impl<T> RefUnwindSafe for Client<T>where T: RefUnwindSafe,
impl<T> Send for Client<T>where T: Send,
impl<T> Sync for Client<T>where T: Sync,
impl<T> Unpin for Client<T>where T: Unpin,
impl<T> UnwindSafe for Client<T>where T: UnwindSafe,
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§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