Expand description
Enables Rust apps to report events using Event Tracing for Windows.
See About Event Tracing.
Macros§
- guid
- Initializes a
GUIDfrom literal values.
Structs§
- EtwProvider
- Implements
Providerby registering with ETW. - Event
Data Descriptor - Contains a reference to the data for an event field. The type of the data is not specified in
this structure; instead, the type of the data is stored in the event’s metadata.
(See
win_etw_metadata::InFlag.) - Event
Descriptor - Describes parameters for an event. This is an implementation detail, and should not be directly used by applications.
- Event
Options - Allows an application to override the parameters for an event. The first parameter of each
generated event method is
options: Option<&EventOptions>. - FILETIME
- See
[FILETIME](https://docs.microsoft.com/en-us/windows/win32/api/minwinbase/ns-minwinbase-filetime). - GUID
- The Windows
GUIDtype. - Level
- Predefined event tracing levels
- Null
Provider - Implements
Providerby discarding all events. - Socket
Addr V4 - This has the same in-memory representation as the Win32
[SOCKADDR_IN]structure. - Socket
Addr V6 - See
[SOCKADDR_IN6_LH](https://docs.microsoft.com/en-us/windows/win32/api/ws2ipdef/ns-ws2ipdef-sockaddr_in6_lh).
Enums§
- Error
- Errors returned by
win_etw_providerfunctions.
Traits§
- Provider
- Describes the functions needed for an event provider backend. This is an implementation detail, and should not be used directly by applications.
Functions§
- get_
current_ thread_ activity_ id - Gets the current activity ID.
- new_
activity_ id - Generates a new activity ID.
- with_
activity - Allows an application to enter a nested activity scope. This creates a new activity ID, sets this activity ID as the current activity ID of the current thread, and then runs the provided function. After the function finishes, it restores the activity ID of the calling thread (even if a panic occurs).