pub struct TracepointOpts {
pub cookie: u64,
/* private fields */
}
Expand description
Options to optionally be provided when attaching to a tracepoint.
Fields§
Custom user-provided value accessible through bpf_get_attach_cookie
.
Trait Implementations§
Source§impl Clone for TracepointOpts
impl Clone for TracepointOpts
Source§fn clone(&self) -> TracepointOpts
fn clone(&self) -> TracepointOpts
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TracepointOpts
impl Debug for TracepointOpts
Source§impl Default for TracepointOpts
impl Default for TracepointOpts
Source§fn default() -> TracepointOpts
fn default() -> TracepointOpts
Returns the “default value” for a type. Read more
Source§impl From<TracepointOpts> for bpf_tracepoint_opts
impl From<TracepointOpts> for bpf_tracepoint_opts
Source§fn from(opts: TracepointOpts) -> Self
fn from(opts: TracepointOpts) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TracepointOpts
impl RefUnwindSafe for TracepointOpts
impl Send for TracepointOpts
impl Sync for TracepointOpts
impl Unpin for TracepointOpts
impl UnwindSafe for TracepointOpts
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)