pub struct Tracepoint { /* private fields */ }Implementations§
Source§impl Tracepoint
impl Tracepoint
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new probe with the defaults. Further initialization is required before attaching.
Sourcepub fn handler(self, name: &str) -> Self
pub fn handler(self, name: &str) -> Self
Specify the name of the probe handler within the BPF code. This is a required item.
Sourcepub fn subsystem(self, name: &str) -> Self
pub fn subsystem(self, name: &str) -> Self
Specify the name of the tracepoint subsystem. This is a required item.
Sourcepub fn tracepoint(self, name: &str) -> Self
pub fn tracepoint(self, name: &str) -> Self
Specify the specific tracepoint for this probe. This is a required item.
Trait Implementations§
Source§impl Default for Tracepoint
impl Default for Tracepoint
Source§fn default() -> Tracepoint
fn default() -> Tracepoint
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for Tracepoint
impl RefUnwindSafe for Tracepoint
impl Send for Tracepoint
impl Sync for Tracepoint
impl Unpin for Tracepoint
impl UnwindSafe for Tracepoint
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more