whereis_pid

Function whereis_pid 

Source
pub fn whereis_pid<'a>(env: Env<'a>, name: Term<'a>) -> Result<LocalPid, Error>
Expand description

Attempts to turn name into a LocalPid Uses enif_whereis_pid under the hood.

NOTE: Current implementation is very dirty, as we use transmutation to build a struct whose internals are not exposed by Rustler itself. There is an open PR on Rustler to add support properly: https://github.com/rusterlium/rustler/pull/456