pub struct NatsHeaderInjector { /* private fields */ }
Implementations§
source§impl NatsHeaderInjector
impl NatsHeaderInjector
sourcepub fn new_with_span(headers: HeaderMap) -> Self
pub fn new_with_span(headers: HeaderMap) -> Self
Convenience constructor that returns a new injector with the current span context already injected into the given header map
sourcepub fn default_with_span() -> Self
pub fn default_with_span() -> Self
Convenience constructor that returns a new injector with the current span context already
injected into a default HeaderMap
sourcepub fn inject_context(&mut self)
pub fn inject_context(&mut self)
Injects the current context from the span into the headers
Trait Implementations§
source§impl AsRef<HeaderMap> for NatsHeaderInjector
impl AsRef<HeaderMap> for NatsHeaderInjector
source§impl Debug for NatsHeaderInjector
impl Debug for NatsHeaderInjector
source§impl Default for NatsHeaderInjector
impl Default for NatsHeaderInjector
source§fn default() -> NatsHeaderInjector
fn default() -> NatsHeaderInjector
Returns the “default value” for a type. Read more
source§impl From<HeaderMap> for NatsHeaderInjector
impl From<HeaderMap> for NatsHeaderInjector
source§impl From<NatsHeaderInjector> for HeaderMap
impl From<NatsHeaderInjector> for HeaderMap
source§fn from(inj: NatsHeaderInjector) -> Self
fn from(inj: NatsHeaderInjector) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for NatsHeaderInjector
impl RefUnwindSafe for NatsHeaderInjector
impl Send for NatsHeaderInjector
impl Sync for NatsHeaderInjector
impl Unpin for NatsHeaderInjector
impl UnwindSafe for NatsHeaderInjector
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