Struct opentelemetry::trace::noop::NoopTextMapPropagator
source · [−]pub struct NoopTextMapPropagator { /* private fields */ }
Available on crate feature
trace
only.Expand description
A no-op instance of an TextMapPropagator
.
Implementations
sourceimpl NoopTextMapPropagator
impl NoopTextMapPropagator
sourcepub fn new() -> NoopTextMapPropagator
pub fn new() -> NoopTextMapPropagator
Create a new noop text map propagator
Trait Implementations
sourceimpl Debug for NoopTextMapPropagator
impl Debug for NoopTextMapPropagator
sourceimpl Default for NoopTextMapPropagator
impl Default for NoopTextMapPropagator
sourcefn default() -> NoopTextMapPropagator
fn default() -> NoopTextMapPropagator
Returns the “default value” for a type. Read more
sourceimpl TextMapPropagator for NoopTextMapPropagator
impl TextMapPropagator for NoopTextMapPropagator
sourcefn inject_context(&self, _cx: &Context, _injector: &mut dyn Injector)
fn inject_context(&self, _cx: &Context, _injector: &mut dyn Injector)
sourcefn extract_with_context(
&self,
_cx: &Context,
_extractor: &dyn Extractor
) -> Context
fn extract_with_context(
&self,
_cx: &Context,
_extractor: &dyn Extractor
) -> Context
sourcefn fields(&self) -> FieldIter<'_>ⓘNotable traits for FieldIter<'a>impl<'a> Iterator for FieldIter<'a> type Item = &'a str;
fn fields(&self) -> FieldIter<'_>ⓘNotable traits for FieldIter<'a>impl<'a> Iterator for FieldIter<'a> type Item = &'a str;
Returns iter of fields used by TextMapPropagator
Read more
Auto Trait Implementations
impl RefUnwindSafe for NoopTextMapPropagator
impl Send for NoopTextMapPropagator
impl Sync for NoopTextMapPropagator
impl Unpin for NoopTextMapPropagator
impl UnwindSafe for NoopTextMapPropagator
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more