pub struct ProgramAttr {
pub prog_name: Option<String>,
pub prog_type: ProgramType,
pub expected_attach_type: Option<AttachType>,
pub attach_btf_id: Option<u32>,
}
Fields§
§prog_name: Option<String>
An optional name for the program.
prog_type: ProgramType
The type of program. Only certain program types can be attached to certain names/btf ids,
so this field and the attach_*
fields need to be coordinated properly.
expected_attach_type: Option<AttachType>
The type of attachment.
attach_btf_id: Option<u32>
If the probe is being attached to a function using the BTF id, specify it here.
Trait Implementations§
Source§impl Clone for ProgramAttr
impl Clone for ProgramAttr
Source§fn clone(&self) -> ProgramAttr
fn clone(&self) -> ProgramAttr
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 moreAuto Trait Implementations§
impl Freeze for ProgramAttr
impl RefUnwindSafe for ProgramAttr
impl Send for ProgramAttr
impl Sync for ProgramAttr
impl Unpin for ProgramAttr
impl UnwindSafe for ProgramAttr
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