#[repr(C)]
pub struct bpf_prog_load_opts {
Show 21 fields pub sz: size_t, pub attempts: c_int, pub expected_attach_type: bpf_attach_type, pub prog_btf_fd: __u32, pub prog_flags: __u32, pub prog_ifindex: __u32, pub kern_version: __u32, pub attach_btf_id: __u32, pub attach_prog_fd: __u32, pub attach_btf_obj_fd: __u32, pub __bindgen_padding_0: [u8; 4], pub fd_array: *const c_int, pub func_info: *const c_void, pub func_info_cnt: __u32, pub func_info_rec_size: __u32, pub line_info: *const c_void, pub line_info_cnt: __u32, pub line_info_rec_size: __u32, pub log_level: __u32, pub log_size: __u32, pub log_buf: *mut c_char,
}

Fields

sz: size_tattempts: c_intexpected_attach_type: bpf_attach_typeprog_btf_fd: __u32prog_flags: __u32prog_ifindex: __u32kern_version: __u32attach_btf_id: __u32attach_prog_fd: __u32attach_btf_obj_fd: __u32__bindgen_padding_0: [u8; 4]fd_array: *const c_intfunc_info: *const c_voidfunc_info_cnt: __u32func_info_rec_size: __u32line_info: *const c_voidline_info_cnt: __u32line_info_rec_size: __u32log_level: __u32log_size: __u32log_buf: *mut c_char

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. 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.