pub struct OpenTelemetryProps<P: ?Sized> { /* private fields */ }Expand description
The emit::Ctxt::Current used by OpenTelemetryCtxt.
Trait Implementations§
Source§impl<P: Props + ?Sized> Props for OpenTelemetryProps<P>
impl<P: Props + ?Sized> Props for OpenTelemetryProps<P>
Source§fn for_each<'kv, F: FnMut(Str<'kv>, Value<'kv>) -> ControlFlow<()>>(
&'kv self,
for_each: F,
) -> ControlFlow<()>
fn for_each<'kv, F: FnMut(Str<'kv>, Value<'kv>) -> ControlFlow<()>>( &'kv self, for_each: F, ) -> ControlFlow<()>
Source§fn get<'v, K>(&'v self, key: K) -> Option<Value<'v>>where
K: ToStr,
fn get<'v, K>(&'v self, key: K) -> Option<Value<'v>>where
K: ToStr,
Get the value for a given key, if it’s present. Read more
Source§fn pull<'kv, V, K>(&'kv self, key: K) -> Option<V>
fn pull<'kv, V, K>(&'kv self, key: K) -> Option<V>
Get the value for a given key, if it’s present as an instance of
V. Read moreSource§fn collect<'kv, C>(&'kv self) -> Cwhere
C: FromProps<'kv>,
fn collect<'kv, C>(&'kv self) -> Cwhere
C: FromProps<'kv>,
Collect these properties into another collection type. Read more
Source§fn as_map(&self) -> &AsMap<Self>where
Self: Sized,
fn as_map(&self) -> &AsMap<Self>where
Self: Sized,
Get an adapter that will serialize properties as a map.
Source§fn dedup(&self) -> &Dedup<Self>where
Self: Sized,
fn dedup(&self) -> &Dedup<Self>where
Self: Sized,
Lazily de-duplicate properties in the collection. Read more
Auto Trait Implementations§
impl<P> Freeze for OpenTelemetryProps<P>where
P: ?Sized,
impl<P> RefUnwindSafe for OpenTelemetryProps<P>where
P: RefUnwindSafe + ?Sized,
impl<P> !Send for OpenTelemetryProps<P>
impl<P> !Sync for OpenTelemetryProps<P>
impl<P> Unpin for OpenTelemetryProps<P>where
P: ?Sized,
impl<P> UnwindSafe for OpenTelemetryProps<P>where
P: RefUnwindSafe + ?Sized,
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