Trait HttpModuleConfExt

Source
pub trait HttpModuleConfExt {
    // Provided methods
    unsafe fn http_main_conf_unchecked<T>(
        &self,
        _module: &ngx_module_t,
    ) -> Option<NonNull<T>> { ... }
    unsafe fn http_server_conf_unchecked<T>(
        &self,
        _module: &ngx_module_t,
    ) -> Option<NonNull<T>> { ... }
    unsafe fn http_location_conf_unchecked<T>(
        &self,
        _module: &ngx_module_t,
    ) -> Option<NonNull<T>> { ... }
}
Expand description

Utility trait for types containing HTTP module configuration

Provided Methods§

Source

unsafe fn http_main_conf_unchecked<T>( &self, _module: &ngx_module_t, ) -> Option<NonNull<T>>

Get a non-null reference to the main configuration structure for HTTP module

§Safety

Caller must ensure that type T matches the configuration type for the specified module.

Source

unsafe fn http_server_conf_unchecked<T>( &self, _module: &ngx_module_t, ) -> Option<NonNull<T>>

Get a non-null reference to the server configuration structure for HTTP module

§Safety

Caller must ensure that type T matches the configuration type for the specified module.

Source

unsafe fn http_location_conf_unchecked<T>( &self, _module: &ngx_module_t, ) -> Option<NonNull<T>>

Get a non-null reference to the location configuration structure for HTTP module

Applies to a single location, if or limit_except block

§Safety

Caller must ensure that type T matches the configuration type for the specified module.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§