Struct bcc::perf_event::PerfMapBuilder [−][src]
A builder type for producing PerfMap
s
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,
F: RefUnwindSafe,
impl<F> !Send for PerfMapBuilder<F>
impl<F> !Sync for PerfMapBuilder<F>
impl<F> Unpin for PerfMapBuilder<F> where
F: Unpin,
F: Unpin,
impl<F> UnwindSafe for PerfMapBuilder<F> where
F: UnwindSafe,
F: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,