pub struct KprobeOpts {
pub cookie: u64,
/* private fields */
}
Expand description
Options to optionally be provided when attaching to a kprobe.
Fields§
Custom user-provided value accessible through bpf_get_attach_cookie
.
Trait Implementations§
Source§impl Clone for KprobeOpts
impl Clone for KprobeOpts
Source§fn clone(&self) -> KprobeOpts
fn clone(&self) -> KprobeOpts
Returns a duplicate 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 KprobeOpts
impl Debug for KprobeOpts
Source§impl Default for KprobeOpts
impl Default for KprobeOpts
Source§fn default() -> KprobeOpts
fn default() -> KprobeOpts
Returns the “default value” for a type. Read more
Source§impl From<KprobeOpts> for bpf_kprobe_opts
impl From<KprobeOpts> for bpf_kprobe_opts
Source§fn from(opts: KprobeOpts) -> Self
fn from(opts: KprobeOpts) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for KprobeOpts
impl RefUnwindSafe for KprobeOpts
impl Send for KprobeOpts
impl Sync for KprobeOpts
impl Unpin for KprobeOpts
impl UnwindSafe for KprobeOpts
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