Crate win_etw_provider

Crate win_etw_provider 

Source
Expand description

Enables Rust apps to report events using Event Tracing for Windows.

See About Event Tracing.

Macros§

guid
Initializes a GUID from literal values.

Structs§

EtwProvider
Implements Provider by registering with ETW.
EventDataDescriptor
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.)
EventDescriptor
Describes parameters for an event. This is an implementation detail, and should not be directly used by applications.
EventOptions
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 GUID type.
Level
Predefined event tracing levels
NullProvider
Implements Provider by discarding all events.
SocketAddrV4
This has the same in-memory representation as the Win32 [SOCKADDR_IN] structure.
SocketAddrV6
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_provider functions.

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).