pub type ENetInterceptCallback = Option<unsafe extern "C" fn(host: *mut _ENetHost, event: *mut _ENetEvent) -> c_int>;
Expand description

Callback for intercepting received raw UDP packets. Should return 1 to intercept, 0 to ignore, or -1 to propagate an error.

Aliased Type§

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

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *mut _ENetHost, _: *mut _ENetEvent) -> i32)

Some value of type T.