Skip to main content

HookCallback

Trait HookCallback 

Source
pub trait HookCallback<Args, R>:
    Send
    + Sync
    + 'static { }
Expand description

A closure usable as a hook for a method with parameters Args returning R. Implemented for Fn(args..., Original<(args...), R>) -> R.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<F, A: Il2CppValue, B: Il2CppValue, C: Il2CppValue, D: Il2CppValue, E: Il2CppValue, G: Il2CppValue, H: Il2CppValue, I: Il2CppValue, R: Il2CppValue> HookCallback<(A, B, C, D, E, G, H, I), R> for F
where F: Fn(A, B, C, D, E, G, H, I, Original<(A, B, C, D, E, G, H, I), R>) -> R + Send + Sync + 'static,

Source§

impl<F, A: Il2CppValue, B: Il2CppValue, C: Il2CppValue, D: Il2CppValue, E: Il2CppValue, G: Il2CppValue, H: Il2CppValue, R: Il2CppValue> HookCallback<(A, B, C, D, E, G, H), R> for F
where F: Fn(A, B, C, D, E, G, H, Original<(A, B, C, D, E, G, H), R>) -> R + Send + Sync + 'static,

Source§

impl<F, A: Il2CppValue, B: Il2CppValue, C: Il2CppValue, D: Il2CppValue, E: Il2CppValue, G: Il2CppValue, R: Il2CppValue> HookCallback<(A, B, C, D, E, G), R> for F
where F: Fn(A, B, C, D, E, G, Original<(A, B, C, D, E, G), R>) -> R + Send + Sync + 'static,

Source§

impl<F, A: Il2CppValue, B: Il2CppValue, C: Il2CppValue, D: Il2CppValue, E: Il2CppValue, R: Il2CppValue> HookCallback<(A, B, C, D, E), R> for F
where F: Fn(A, B, C, D, E, Original<(A, B, C, D, E), R>) -> R + Send + Sync + 'static,

Source§

impl<F, A: Il2CppValue, B: Il2CppValue, C: Il2CppValue, D: Il2CppValue, R: Il2CppValue> HookCallback<(A, B, C, D), R> for F
where F: Fn(A, B, C, D, Original<(A, B, C, D), R>) -> R + Send + Sync + 'static,

Source§

impl<F, A: Il2CppValue, B: Il2CppValue, C: Il2CppValue, R: Il2CppValue> HookCallback<(A, B, C), R> for F
where F: Fn(A, B, C, Original<(A, B, C), R>) -> R + Send + Sync + 'static,

Source§

impl<F, A: Il2CppValue, B: Il2CppValue, R: Il2CppValue> HookCallback<(A, B), R> for F
where F: Fn(A, B, Original<(A, B), R>) -> R + Send + Sync + 'static,

Source§

impl<F, A: Il2CppValue, R: Il2CppValue> HookCallback<(A,), R> for F
where F: Fn(A, Original<(A,), R>) -> R + Send + Sync + 'static,

Source§

impl<F, R: Il2CppValue> HookCallback<(), R> for F
where F: Fn(Original<(), R>) -> R + Send + Sync + 'static,