StdTracker

Struct StdTracker 

Source
pub struct StdTracker<C, T>
where T: AsBytes + Clone, C: Code,
{ /* private fields */ }

Implementations§

Source§

impl<C, T> StdTracker<C, T>
where T: AsBytes + Clone, C: Code,

Source

pub fn new() -> Self

Creates a context for a given span.

Trait Implementations§

Source§

impl<C, T> Debug for StdTracker<C, T>
where T: AsBytes + Clone + Debug, C: Code + Debug,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<C, T> Default for StdTracker<C, T>
where T: AsBytes + Clone, C: Code,

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<C, T> TrackProvider<C, T> for StdTracker<C, T>
where T: AsBytes + Clone, C: Code,

Source§

fn track_span<'s>( &'s self, text: T, ) -> LocatedSpan<T, DynTrackProvider<'s, C, T>>
where T: 's,

Create a new Span from this context using the original str.

Source§

fn results(&self) -> TrackedDataVec<C, T>

Extract the tracking results.

Removes the result from the context.

Source§

fn track(&self, data: TrackData<C, T>)

Collects the tracking data. Use Track.xxx()

Auto Trait Implementations§

§

impl<C, T> !Freeze for StdTracker<C, T>

§

impl<C, T> !RefUnwindSafe for StdTracker<C, T>

§

impl<C, T> Send for StdTracker<C, T>
where C: Send, T: Send,

§

impl<C, T> !Sync for StdTracker<C, T>

§

impl<C, T> Unpin for StdTracker<C, T>
where C: Unpin, T: Unpin,

§

impl<C, T> UnwindSafe for StdTracker<C, T>
where C: UnwindSafe, T: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.