Type Alias ope_close_func

Source
pub type ope_close_func = Option<unsafe extern "C" fn(user_data: *mut c_void) -> c_int>;
Expand description

Called for closing a stream.

§Arguments

  • user_data - user-defined data passed to the callback

§Returns

error code

  • 0 success
  • 1 failure

Aliased Type§

enum ope_close_func {
    None,
    Some(unsafe extern "C" fn(_: *mut c_void) -> i32),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *mut c_void) -> i32)

Some value of type T.