pub struct PerfBufferBuilder<'a, 'b> { /* private fields */ }
Expand description

Builds PerfBuffer instances.

Implementations

Callback to run when a sample is received.

This callback provides a raw byte slice. You may find libraries such as plain helpful.

Callback arguments are: (cpu, data).

Callback to run when a sample is received.

Callback arguments are: (cpu, lost_count).

The number of pages to size the ring buffer.

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.

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.