pub struct ProgramAttr {
    pub attach_btf_id: Option<u32>,
    pub attach_name: Option<String>,
    pub expected_attach_type: Option<AttachType>,
    pub prog_name: [u8; 16],
    pub prog_type: ProgramType,
}

Fields

attach_btf_id: Option<u32>

The BTF id of the function that this program is to be attached to. Mutually-exclusive with the attach_name field.

attach_name: Option<String>

The name of the function that this program is to be attached to. Mutually-exclusive with the attach_btf_id field.

expected_attach_type: Option<AttachType>

The type of attachment.

prog_name: [u8; 16]

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.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.