Trait ResponseFutureExt

Source
pub trait ResponseFutureExt: Sized {
    // Required method
    fn with_trace_id(
        self,
        trace_id: String,
        trace_header: String,
        include_trace_id: bool,
    ) -> TracedResponseFuture<Self> ;
}
Expand description

Extension trait for response futures to add trace context

Required Methods§

Source

fn with_trace_id( self, trace_id: String, trace_header: String, include_trace_id: bool, ) -> TracedResponseFuture<Self>

Add trace ID header to the response

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.

Implementors§

Source§

impl<F, B, E> ResponseFutureExt for F
where F: Future<Output = Result<Response<B>, E>> + Unpin,