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