Union libbpf_sys::bpf_attr[][src]

#[repr(C)]
pub union bpf_attr {
Show fields pub __bindgen_anon_1: bpf_attr__bindgen_ty_1, pub __bindgen_anon_2: bpf_attr__bindgen_ty_2, pub batch: bpf_attr__bindgen_ty_3, pub __bindgen_anon_3: bpf_attr__bindgen_ty_4, pub __bindgen_anon_4: bpf_attr__bindgen_ty_5, pub __bindgen_anon_5: bpf_attr__bindgen_ty_6, pub test: bpf_attr__bindgen_ty_7, pub __bindgen_anon_6: bpf_attr__bindgen_ty_8, pub info: bpf_attr__bindgen_ty_9, pub query: bpf_attr__bindgen_ty_10, pub raw_tracepoint: bpf_attr__bindgen_ty_11, pub __bindgen_anon_7: bpf_attr__bindgen_ty_12, pub task_fd_query: bpf_attr__bindgen_ty_13, pub link_create: bpf_attr__bindgen_ty_14, pub link_update: bpf_attr__bindgen_ty_15, pub link_detach: bpf_attr__bindgen_ty_16, pub enable_stats: bpf_attr__bindgen_ty_17, pub iter_create: bpf_attr__bindgen_ty_18, pub prog_bind_map: bpf_attr__bindgen_ty_19, // some fields omitted
}

Fields

__bindgen_anon_1: bpf_attr__bindgen_ty_1__bindgen_anon_2: bpf_attr__bindgen_ty_2batch: bpf_attr__bindgen_ty_3__bindgen_anon_3: bpf_attr__bindgen_ty_4__bindgen_anon_4: bpf_attr__bindgen_ty_5__bindgen_anon_5: bpf_attr__bindgen_ty_6test: bpf_attr__bindgen_ty_7__bindgen_anon_6: bpf_attr__bindgen_ty_8info: bpf_attr__bindgen_ty_9query: bpf_attr__bindgen_ty_10raw_tracepoint: bpf_attr__bindgen_ty_11__bindgen_anon_7: bpf_attr__bindgen_ty_12task_fd_query: bpf_attr__bindgen_ty_13link_create: bpf_attr__bindgen_ty_14link_update: bpf_attr__bindgen_ty_15link_detach: bpf_attr__bindgen_ty_16enable_stats: bpf_attr__bindgen_ty_17iter_create: bpf_attr__bindgen_ty_18prog_bind_map: bpf_attr__bindgen_ty_19

Trait Implementations

impl Clone for bpf_attr[src]

fn clone(&self) -> bpf_attr[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Default for bpf_attr[src]

fn default() -> Self[src]

Returns the “default value” for a type. Read more

impl Copy for bpf_attr[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

Creates owned data from borrowed data, usually by cloning. Read more

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.