1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#![allow(non_camel_case_types)]
#![allow(clippy::missing_safety_doc)]
#[doc(hidden)]
pub mod wrapper;
#[doc(hidden)]
pub mod codegen_runtime;
pub use lazy_static;
#[macro_use]
pub mod types;
mod term;
pub use crate::term::Term;
pub use crate::types::{
Atom, Binary, Decoder, Encoder, ListIterator, LocalPid, MapIterator, NewBinary, OwnedBinary,
};
pub mod resource;
pub use crate::resource::ResourceArc;
#[doc(hidden)]
pub mod dynamic;
pub use crate::dynamic::TermType;
pub mod schedule;
pub use crate::schedule::SchedulerFlags;
pub mod env;
pub use crate::env::{Env, OwnedEnv};
pub mod thread;
pub use crate::thread::{spawn, JobSpawner, ThreadSpawner};
pub mod error;
pub mod export;
pub use crate::error::Error;
pub mod r#return;
pub use crate::r#return::Return;
#[doc(hidden)]
mod nif;
pub use nif::Nif;
pub type NifResult<T> = Result<T, Error>;
#[cfg(feature = "derive")]
pub use rustler_codegen::{
init, nif, NifException, NifMap, NifRecord, NifStruct, NifTaggedEnum, NifTuple, NifUnitEnum,
NifUntaggedEnum,
};