[][src]Struct libipt_sys::pt_config__bindgen_ty_1

#[repr(C)]
pub struct pt_config__bindgen_ty_1 {
    pub callback: Option<unsafe extern "C" fn(unknown: *mut pt_packet_unknown, config: *const pt_config, pos: *const u8, context: *mut c_void) -> c_int>,
    pub context: *mut c_void,
}

An optional callback for handling unknown packets.

If @callback is not NULL, it is called for any unknown opcode.

Fields

callback: Option<unsafe extern "C" fn(unknown: *mut pt_packet_unknown, config: *const pt_config, pos: *const u8, context: *mut c_void) -> c_int>

The callback function.

It shall decode the packet at @pos into @unknown. It shall return the number of bytes read upon success. It shall return a negative pt_error_code otherwise. The below context is passed as @context.

context: *mut c_void

The user-defined context for this configuration.

Trait Implementations

impl Clone for pt_config__bindgen_ty_1[src]

impl Copy for pt_config__bindgen_ty_1[src]

impl Debug for pt_config__bindgen_ty_1[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> From<T> for 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 = !

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.

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

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

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