Struct rustler_sys::rustler_sys_api::ErlNifFunc
source · #[repr(C)]pub struct ErlNifFunc {
pub name: *const c_char,
pub arity: c_uint,
pub function: unsafe extern "C" fn(env: *mut ErlNifEnv, argc: c_int, argv: *const ERL_NIF_TERM) -> ERL_NIF_TERM,
pub flags: c_uint,
}
Expand description
See ErlNifFunc in the Erlang docs.
Fields§
§name: *const c_char
§arity: c_uint
§function: unsafe extern "C" fn(env: *mut ErlNifEnv, argc: c_int, argv: *const ERL_NIF_TERM) -> ERL_NIF_TERM
§flags: c_uint
Auto Trait Implementations§
impl Freeze for ErlNifFunc
impl RefUnwindSafe for ErlNifFunc
impl !Send for ErlNifFunc
impl !Sync for ErlNifFunc
impl Unpin for ErlNifFunc
impl UnwindSafe for ErlNifFunc
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more