Skip to main content

CallbackHandler

Type Alias CallbackHandler 

Source
pub type CallbackHandler = Box<dyn Fn(&ScriptContext<'_>) -> Result<()> + Send + Sync>;
Expand description

A native handler standing in for a PHP-callback entry. Returns Err to abort the event (same as a non-zero process exit).

Aliased Type§

pub struct CallbackHandler(/* private fields */);