Guppy.Native.Nif (guppy v0.2.0)

Copy Markdown View Source

NIF-backed native bridge wrapper.

Rustler owns the NIF entrypoints and lifecycle. This module keeps the Elixir-facing dispatch and load-status normalization narrow.

Summary

Functions

Returns native build info when the NIF is loaded.

Returns the registered native event target generation, for diagnostics.

Returns the native GUI bootstrap status when the NIF is loaded.

Returns :ok once the NIF is loaded, caching the successful check.

Returns true when the NIF is loaded.

Returns native performance counters when the NIF is loaded.

Returns the native runtime status when the NIF is loaded.

Types

load_status()

@type load_status() :: :ok | {:error, term()}

Functions

build_info()

Returns native build info when the NIF is loaded.

event_target_status()

Returns the registered native event target generation, for diagnostics.

gui_status()

Returns the native GUI bootstrap status when the NIF is loaded.

load_status()

Returns :ok once the NIF is loaded, caching the successful check.

loaded?()

Returns true when the NIF is loaded.

performance_counters()

Returns native performance counters when the NIF is loaded.

runtime_status()

Returns the native runtime status when the NIF is loaded.