pub unsafe fn enif_self( caller_env: *mut ErlNifEnv, pid: *mut ErlNifPid ) -> *mut ErlNifPid
See enif_self in the Erlang docs.