pub struct HeaderInjector<'a>(pub &'a mut HeaderMap);
Expand description
Helper for injecting headers into HTTP Requests. This is used for OpenTelemetry context propagation over HTTP. See this for example usage.
Tuple Fields§
§0: &'a mut HeaderMap
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for HeaderInjector<'a>
impl<'a> RefUnwindSafe for HeaderInjector<'a>
impl<'a> Send for HeaderInjector<'a>
impl<'a> Sync for HeaderInjector<'a>
impl<'a> Unpin for HeaderInjector<'a>
impl<'a> !UnwindSafe for HeaderInjector<'a>
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