pub trait Factory<A, R> {
unsafe fn call(
&self,
context: Context,
output: *mut c_char,
size: size_t,
args: Option<*mut *mut i8>,
count: Option<c_int>
) -> c_int;
}Expand description
A factory for creating a command handler.
Creates a handler from any function that optionally takes a context and up to 12 arguments.
The arguments must implement FromArma
The return value must implement IntoExtResult