Module core

Source
Expand description

The core module.

This module provides fundamental utilities needed to interface with many NGINX primitives. String conversions, the pool (memory interface) object, and buffer APIs are covered here. These utilities will generally align with the NGINX ‘core’ files and APIs.

Re-exports§

pub use slab::SlabPool;

Modules§

slab
Wrapper for the nginx slab pool allocator.

Macros§

ngx_string
Static string initializer for ngx_str_t.

Structs§

MemoryBuffer
Wrapper struct for a memory buffer, providing methods for working with an ngx_buf_t.
NgxStr
Representation of a borrowed Nginx string.
NgxString
Owned byte string type with Allocator support.
Pool
Non-owning wrapper for an ngx_pool_t pointer, providing methods for working with memory pools.
Status
Status
TemporaryBuffer
Wrapper struct for a temporary buffer, providing methods for working with an ngx_buf_t.

Constants§

NGX_CONF_ERROR
An error occurred while parsing and validating configuration.
NGX_CONF_OK
Configuration handler succeeded.

Traits§

Buffer
The Buffer trait provides methods for working with an nginx buffer (ngx_buf_t).
MutableBuffer
The MutableBuffer trait extends the Buffer trait and provides methods for working with a mutable buffer.