Trait arma_rs::Factory

source ·
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

Required Methods§

Safety

This function is unsafe because it interacts with the C API.

Trait Implementations§

Safety Read more
Safety Read more
Safety Read more
Safety Read more
Safety Read more
Safety Read more
Safety Read more
Safety Read more
Safety Read more
Safety Read more
Safety Read more
Safety Read more
Safety Read more
Safety Read more
Safety Read more
Safety Read more
Safety Read more
Safety Read more
Safety Read more
Safety Read more
Safety Read more
Safety Read more
Safety Read more
Safety Read more
Safety Read more
Safety Read more
Safety Read more

Implementors§