Enum rustler::NifError
[−]
[src]
pub enum NifError { BadArg, Atom(&'static str), RaiseAtom(&'static str), RaiseTerm(Box<NifEncoder>), }
Represents usual errors that can happen in a nif. This enables you to return an error from anywhere, even places where you don't have an NifEnv availible.
Variants
BadArg
Returned when the NIF has been called with the wrong number or type of arguments.
Atom(&'static str)
Encodes the string into an atom and returns it from the NIF.
RaiseAtom(&'static str)
RaiseTerm(Box<NifEncoder>)