pub struct PendingProcessorStats { /* private fields */ }
Expand description

A subscription to various live updates during minidump processing.

Construct it with PendingProcessorStats::new and pass it into ProcessorOptions::stat_reporter. The type internally handles concurrency and can be safely sent or shared between threads.

The type can’t be cloned just because we don’t want to guarantee how the atomics are implemented. Wrap it in an Arc if you want shared access for yourself.

Implementations§

Subscribe to the given stats.

Pass this into ProcessorOptions::stat_reporter to use it.

Gets (processed_thread_count, total_thread_count).

This will panic if you didn’t subscribe to PendingProcessorStatSubscriptions::thread_count.

Get count of walked frames.

This will panic if you didn’t subscribe to PendingProcessorStatSubscriptions::frame_count.

Get all the new walked frames since this method was last called.

This operates via callback to allow implementation flexibility.

This will panic if you didn’t subscribe to PendingProcessorStatSubscriptions::live_frames.

Get the unwalked ProcessState, if it has been computed.

This will yield Some exactly once.

This will panic if you didn’t subscribe to PendingProcessorStatSubscriptions::unwalked_result.

Trait Implementations§

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

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

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more