pub trait Instrument: Send + Sync + 'static {
type WatchUpdatesStream: Stream<Item = Result<Update, Status>> + Send + 'static;
// Required method
fn watch_updates<'life0, 'async_trait>(
&'life0 self,
request: Request<InstrumentRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<Self::WatchUpdatesStream>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Generated trait containing gRPC methods that should be implemented for use with InstrumentServer.
Required Associated Types§
Required Methods§
sourcefn watch_updates<'life0, 'async_trait>(
&'life0 self,
request: Request<InstrumentRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<Self::WatchUpdatesStream>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn watch_updates<'life0, 'async_trait>(
&'life0 self,
request: Request<InstrumentRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<Self::WatchUpdatesStream>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Produces a stream of updates about the behavior of the instrumented application.