Expand description
Raw bindings to Nix C API
This crate contains automatically generated bindings from the Nix C headers. The bindings are generated by bindgen and include C-style naming conventions and documentation comments that don’t always conform to Rust standards.
Normally you don’t have to use this crate directly.
Instead use nix-util.
Structs§
Constants§
- err_
NIX_ ERR_ KEY - @brief A key/index access error occurred in C API functions.
- err_
NIX_ ERR_ NIX_ ERROR - @brief A generic Nix error occurred.
- err_
NIX_ ERR_ OVERFLOW - @brief An overflow error occurred.
- err_
NIX_ ERR_ UNKNOWN - @brief An unknown error occurred.
- err_
NIX_ OK - @brief No error occurred.
- verbosity_
NIX_ LVL_ CHATTY - verbosity_
NIX_ LVL_ DEBUG - verbosity_
NIX_ LVL_ ERROR - verbosity_
NIX_ LVL_ INFO - verbosity_
NIX_ LVL_ NOTICE - verbosity_
NIX_ LVL_ TALKATIVE - verbosity_
NIX_ LVL_ VOMIT - verbosity_
NIX_ LVL_ WARN
Functions§
- c_
context_ ⚠create - @brief Allocate a new nix_c_context.
@throws std::bad_alloc
@return allocated nix_c_context, owned by the caller. Free using
nix_c_context_free. - c_
context_ ⚠free - @brief Free a nix_c_context. Does not fail. @param[out] context The context to free, mandatory.
- clear_
err ⚠ - @brief Clear the error message from a nix context.
- err_
code ⚠ - @brief Retrieves the most recent error code from a nix_c_context
- err_
info_ ⚠msg - @brief Retrieves the error message from errorInfo in a context.
- err_msg⚠
- @addtogroup errors @{ / /** @brief Retrieves the most recent error message from a context.
- err_
name ⚠ - @brief Retrieves the error name from a context.
- libutil_
init ⚠ - @brief Initializes nix_libutil and its dependencies.
- set_
err_ ⚠msg - @brief Set an error message on a nix context.
- set_
verbosity ⚠ - @brief Sets the verbosity level
- setting_
get ⚠ - @defgroup settings Nix configuration settings @{ / /** @brief Retrieves a setting from the nix global configuration.
- setting_
set ⚠ - @brief Sets a setting in the nix global configuration.
- version_
get ⚠ - @brief Retrieves the nix library version.
Type Aliases§
- err
- @brief Type for error codes in the Nix system
- get_
string_ callback - @brief Called to get the value of a string owned by Nix.
- verbosity
- @brief Verbosity level