View Source AhoCorasickNif.Types (aho_corasick_nif v0.1.0-beta.1)
Types used in the AhoCorasickNif module.
Summary
Types
A reference to an AhoCorasickNif automata.
Ther are several common errors and failure modes that can occur when using the NIFs.
Types
@type automata() :: reference()
A reference to an AhoCorasickNif automata.
This is a reference to a uniquly identifable AhoCorasickNif automata in the NIF memory space.
@type errors() :: :lock_fail | String.t()
Ther are several common errors and failure modes that can occur when using the NIFs.
:unsupported_type
- The type of the argument passed to the NIF is not supported. Try to validate
the passed args. (The library should manage this for you, so this is a bug in the library.)
:lock_fail
- The NIF was unable to acquire a lock on the automata. This indicates that the
automata is being used by another process. You can try again... but you should try to figure out
how you shared the reference to the automata in the first place.
String.t()
- The NIF returned a string. This is likely a bug in the library related to the way
patterns are being passed to the NIF.