Struct libbpf_rs::TracepointOpts
source · 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