pub struct WatchClient<C: Chain> {
pub inner: WatchServiceClient<InnerService>,
/* private fields */
}Fields§
§inner: WatchServiceClient<InnerService>Implementations§
Source§impl<C: Chain> WatchClient<C>
impl<C: Chain> WatchClient<C>
pub async fn watch_tx( &mut self, predicate: TxPredicate, intersect: Vec<BlockRef>, ) -> Result<WatchedTxStream<C>>
Methods from Deref<Target = WatchServiceClient<InnerService>>§
Sourcepub async fn watch_tx(
&mut self,
request: impl IntoRequest<WatchTxRequest>,
) -> Result<Response<Streaming<WatchTxResponse>>, Status>
pub async fn watch_tx( &mut self, request: impl IntoRequest<WatchTxRequest>, ) -> Result<Response<Streaming<WatchTxResponse>>, Status>
Trait Implementations§
Source§impl<C: Clone + Chain> Clone for WatchClient<C>
impl<C: Clone + Chain> Clone for WatchClient<C>
Source§fn clone(&self) -> WatchClient<C>
fn clone(&self) -> WatchClient<C>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<C: Chain> Deref for WatchClient<C>
impl<C: Chain> Deref for WatchClient<C>
Source§type Target = WatchServiceClient<InterceptedService<Channel, MetadataInterceptor>>
type Target = WatchServiceClient<InterceptedService<Channel, MetadataInterceptor>>
The resulting type after dereferencing.
Source§impl<C: Chain> DerefMut for WatchClient<C>
impl<C: Chain> DerefMut for WatchClient<C>
Source§impl<C: Chain> From<InterceptedService<Channel, MetadataInterceptor>> for WatchClient<C>
impl<C: Chain> From<InterceptedService<Channel, MetadataInterceptor>> for WatchClient<C>
Source§fn from(value: InnerService) -> Self
fn from(value: InnerService) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<C> !Freeze for WatchClient<C>
impl<C> !RefUnwindSafe for WatchClient<C>
impl<C> Send for WatchClient<C>where
C: Send,
impl<C> Sync for WatchClient<C>where
C: Sync,
impl<C> Unpin for WatchClient<C>where
C: Unpin,
impl<C> !UnwindSafe for WatchClient<C>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> 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