Struct bcc::perf_event::PerfMapBuilder[][src]

pub struct PerfMapBuilder<F: Fn() -> Box<dyn FnMut(&[u8]) + Send>> { /* fields omitted */ }

A builder type for producing PerfMaps

Implementations

impl<F: Fn() -> Box<dyn FnMut(&[u8]) + Send>> PerfMapBuilder<F>[src]

pub fn new(table: Table, cb: F) -> Self[src]

Create a new builder for a given table and callback function

pub fn page_count(self, page_count: i32) -> Self[src]

Set the page count for the ringbuffer

pub fn build(self) -> Result<PerfMap, BccError>[src]

Try constructing a PerfMap from the builder

Auto Trait Implementations

impl<F> RefUnwindSafe for PerfMapBuilder<F> where
    F: RefUnwindSafe

impl<F> !Send for PerfMapBuilder<F>

impl<F> !Sync for PerfMapBuilder<F>

impl<F> Unpin for PerfMapBuilder<F> where
    F: Unpin

impl<F> UnwindSafe for PerfMapBuilder<F> where
    F: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.