#[repr(C)]pub struct bpf_prog_load_opts {Show 23 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,
pub log_true_size: __u32,
pub token_fd: __u32,
}
Fields§
§sz: size_t
§attempts: c_int
§expected_attach_type: bpf_attach_type
§prog_btf_fd: __u32
§prog_flags: __u32
§prog_ifindex: __u32
§kern_version: __u32
§attach_btf_id: __u32
§attach_prog_fd: __u32
§attach_btf_obj_fd: __u32
§__bindgen_padding_0: [u8; 4]
§fd_array: *const c_int
§func_info: *const c_void
§func_info_cnt: __u32
§func_info_rec_size: __u32
§line_info: *const c_void
§line_info_cnt: __u32
§line_info_rec_size: __u32
§log_level: __u32
§log_size: __u32
§log_buf: *mut c_char
§log_true_size: __u32
§token_fd: __u32
Trait Implementations§
Source§impl Clone for bpf_prog_load_opts
impl Clone for bpf_prog_load_opts
Source§fn clone(&self) -> bpf_prog_load_opts
fn clone(&self) -> bpf_prog_load_opts
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 bpf_prog_load_opts
impl Debug for bpf_prog_load_opts
Source§impl Default for bpf_prog_load_opts
impl Default for bpf_prog_load_opts
impl Copy for bpf_prog_load_opts
Auto Trait Implementations§
impl Freeze for bpf_prog_load_opts
impl RefUnwindSafe for bpf_prog_load_opts
impl !Send for bpf_prog_load_opts
impl !Sync for bpf_prog_load_opts
impl Unpin for bpf_prog_load_opts
impl UnwindSafe for bpf_prog_load_opts
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)