pub struct CurrentSpanExecutor<E> { /* private fields */ }Expand description
An executor that propagates the current tracing span to its futures.
The span is captured when execute is called, and is
entered each time the future is polled or dropped. Execution is delegated to
the wrapped executor, without requiring a particular runtime.
Requires the tracing feature.
§Example
use hyper_util::rt::{TokioExecutor, CurrentSpanExecutor};
let executor = CurrentSpanExecutor::new(TokioExecutor::new());Implementations§
Source§impl<E> CurrentSpanExecutor<E>
impl<E> CurrentSpanExecutor<E>
Trait Implementations§
Source§impl<E: Clone> Clone for CurrentSpanExecutor<E>
impl<E: Clone> Clone for CurrentSpanExecutor<E>
Source§fn clone(&self) -> CurrentSpanExecutor<E>
fn clone(&self) -> CurrentSpanExecutor<E>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<E: Copy> Copy for CurrentSpanExecutor<E>
Source§impl<E: Debug> Debug for CurrentSpanExecutor<E>
impl<E: Debug> Debug for CurrentSpanExecutor<E>
Source§impl<E: Default> Default for CurrentSpanExecutor<E>
impl<E: Default> Default for CurrentSpanExecutor<E>
Source§fn default() -> CurrentSpanExecutor<E>
fn default() -> CurrentSpanExecutor<E>
Returns the “default value” for a type. Read more
Source§impl<E, F> Executor<F> for CurrentSpanExecutor<E>
impl<E, F> Executor<F> for CurrentSpanExecutor<E>
Auto Trait Implementations§
impl<E> Freeze for CurrentSpanExecutor<E>where
E: Freeze,
impl<E> RefUnwindSafe for CurrentSpanExecutor<E>where
E: RefUnwindSafe,
impl<E> Send for CurrentSpanExecutor<E>where
E: Send,
impl<E> Sync for CurrentSpanExecutor<E>where
E: Sync,
impl<E> Unpin for CurrentSpanExecutor<E>where
E: Unpin,
impl<E> UnsafeUnpin for CurrentSpanExecutor<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for CurrentSpanExecutor<E>where
E: 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