Union selinux_sys::selinux_callback[][src]

#[repr(C)]
pub union selinux_callback {
    pub func_log: Option<unsafe extern "C" fn(type_: c_int, fmt: *const c_char, ...) -> c_int>,
    pub func_audit: Option<unsafe extern "C" fn(auditdata: *mut c_void, cls: security_class_t, msgbuf: *mut c_char, msgbufsize: usize) -> c_int>,
    pub func_validate: Option<unsafe extern "C" fn(ctx: *mut *mut c_char) -> c_int>,
    pub func_setenforce: Option<unsafe extern "C" fn(enforcing: c_int) -> c_int>,
    pub func_policyload: Option<unsafe extern "C" fn(seqno: c_int) -> c_int>,
}

Fields

func_log: Option<unsafe extern "C" fn(type_: c_int, fmt: *const c_char, ...) -> c_int>func_audit: Option<unsafe extern "C" fn(auditdata: *mut c_void, cls: security_class_t, msgbuf: *mut c_char, msgbufsize: usize) -> c_int>func_validate: Option<unsafe extern "C" fn(ctx: *mut *mut c_char) -> c_int>func_setenforce: Option<unsafe extern "C" fn(enforcing: c_int) -> c_int>func_policyload: Option<unsafe extern "C" fn(seqno: c_int) -> c_int>

Trait Implementations

impl Clone for selinux_callback[src]

impl Copy for selinux_callback[src]

impl Debug for selinux_callback[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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.

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.