pub trait TraceService:
Debug
+ Send
+ Sync {
// Provided methods
fn batch_write_spans(
&self,
_req: BatchWriteSpansRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<()>>> + Send { ... }
fn create_span(
&self,
_req: Span,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Span>>> + Send { ... }
}Expand description
Defines the trait used to implement super::client::TraceService.
Application developers may need to implement this trait to mock
client::TraceService. In other use-cases, application developers only
use client::TraceService and need not be concerned with this trait or
its implementations.
Services gain new RPCs routinely. Consequently, this trait gains new methods too. To avoid breaking applications the trait provides a default implementation of each method. Most of these implementations just return an error.
Provided Methods§
Sourcefn batch_write_spans(
&self,
_req: BatchWriteSpansRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<()>>> + Send
fn batch_write_spans( &self, _req: BatchWriteSpansRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<()>>> + Send
Implements super::client::TraceService::batch_write_spans.
Sourcefn create_span(
&self,
_req: Span,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Span>>> + Send
fn create_span( &self, _req: Span, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Span>>> + Send
Implements super::client::TraceService::create_span.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.