Crate call_trace_tls

Source
Expand description

§Example (simple)

Output:

§Example (custom callback)

Output

Structs§

  • Contains information about the current call site.
  • The thread-local callback context for #[trace].
  • Delegates to a trace kept in TLS.

Enums§

  • Indicates why the callback got called by #[trace]

Traits§

  • Tracing interface invoked by #[trace] and #[trace_with]

Functions§

  • Access the thread-local context of #[trace]
  • Registers a callback in the thread-local context. This is a shortcut for accessing the Context via thread_access_with().
  • Unregisters a callback in the thread-local context. This is a shortcut for accessing the Context via thread_access_with().

Type Aliases§

  • A callback. It gets called by #[trace].

Attribute Macros§

  • The #[trace_with] macro. Needs to be applied to function definitions, and will invoke hte Trace interface on the user-provided expression.