Struct erl_nif_sys::enif_entry_t
source · [−]#[repr(C)]pub struct enif_entry_t {Show 13 fields
pub major: c_int,
pub minor: c_int,
pub name: *const c_char,
pub num_of_funcs: c_int,
pub funcs: *const ErlNifFunc,
pub load: Option<unsafe extern "C" fn(arg1: *mut ErlNifEnv, priv_data: *mut *mut c_void, load_info: ERL_NIF_TERM) -> c_int>,
pub reload: Option<unsafe extern "C" fn(arg1: *mut ErlNifEnv, priv_data: *mut *mut c_void, load_info: ERL_NIF_TERM) -> c_int>,
pub upgrade: Option<unsafe extern "C" fn(arg1: *mut ErlNifEnv, priv_data: *mut *mut c_void, old_priv_data: *mut *mut c_void, load_info: ERL_NIF_TERM) -> c_int>,
pub unload: Option<unsafe extern "C" fn(arg1: *mut ErlNifEnv, priv_data: *mut c_void)>,
pub vm_variant: *const c_char,
pub options: c_uint,
pub sizeof_ErlNifResourceTypeInit: usize,
pub min_erts: *const c_char,
}
Fields
major: c_int
minor: c_int
name: *const c_char
num_of_funcs: c_int
funcs: *const ErlNifFunc
load: Option<unsafe extern "C" fn(arg1: *mut ErlNifEnv, priv_data: *mut *mut c_void, load_info: ERL_NIF_TERM) -> c_int>
reload: Option<unsafe extern "C" fn(arg1: *mut ErlNifEnv, priv_data: *mut *mut c_void, load_info: ERL_NIF_TERM) -> c_int>
upgrade: Option<unsafe extern "C" fn(arg1: *mut ErlNifEnv, priv_data: *mut *mut c_void, old_priv_data: *mut *mut c_void, load_info: ERL_NIF_TERM) -> c_int>
unload: Option<unsafe extern "C" fn(arg1: *mut ErlNifEnv, priv_data: *mut c_void)>
vm_variant: *const c_char
options: c_uint
sizeof_ErlNifResourceTypeInit: usize
min_erts: *const c_char
Trait Implementations
sourceimpl Clone for enif_entry_t
impl Clone for enif_entry_t
sourcefn clone(&self) -> enif_entry_t
fn clone(&self) -> enif_entry_t
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for enif_entry_t
impl Debug for enif_entry_t
impl Copy for enif_entry_t
Auto Trait Implementations
impl RefUnwindSafe for enif_entry_t
impl !Send for enif_entry_t
impl !Sync for enif_entry_t
impl Unpin for enif_entry_t
impl UnwindSafe for enif_entry_t
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more