Struct NgxHttpCoreModule

Source
pub struct NgxHttpCoreModule;
Expand description

Auxiliary structure to access ngx_http_core_module configuration.

Trait Implementations§

Source§

impl HttpModule for NgxHttpCoreModule

Source§

fn module() -> &'static ngx_module_t

Returns reference to a global variable of type ngx_module_t created for this module.
Source§

unsafe extern "C" fn preconfiguration( _cf: *mut ngx_conf_t, ) -> ngx_int_t

Safety Read more
Source§

unsafe extern "C" fn postconfiguration( _cf: *mut ngx_conf_t, ) -> ngx_int_t

Safety Read more
Source§

unsafe extern "C" fn create_main_conf( cf: *mut ngx_conf_t, ) -> *mut c_void
where Self: HttpModuleMainConf, Self::MainConf: Default,

Safety Read more
Source§

unsafe extern "C" fn init_main_conf( _cf: *mut ngx_conf_t, _conf: *mut c_void, ) -> *mut c_char
where Self: HttpModuleMainConf, Self::MainConf: Default,

Safety Read more
Source§

unsafe extern "C" fn create_srv_conf( cf: *mut ngx_conf_t, ) -> *mut c_void

Safety Read more
Source§

unsafe extern "C" fn create_loc_conf( cf: *mut ngx_conf_t, ) -> *mut c_void

Safety Read more
Source§

impl HttpModuleLocationConf for NgxHttpCoreModule

Source§

type LocationConf = ngx_http_core_loc_conf_s

Type for location-specific module configuration
Source§

fn location_conf( o: &impl HttpModuleConfExt, ) -> Option<&'static Self::LocationConf>

Get reference to location-specific module configuration
Source§

fn location_conf_mut( o: &impl HttpModuleConfExt, ) -> Option<&'static mut Self::LocationConf>

Get mutable reference to location-specific module configuration
Source§

impl HttpModuleMainConf for NgxHttpCoreModule

Source§

type MainConf = ngx_http_core_main_conf_t

Type for main module configuration
Source§

fn main_conf(o: &impl HttpModuleConfExt) -> Option<&'static Self::MainConf>

Get reference to main module configuration
Source§

fn main_conf_mut( o: &impl HttpModuleConfExt, ) -> Option<&'static mut Self::MainConf>

Get mutable reference to main module configuration
Source§

impl HttpModuleServerConf for NgxHttpCoreModule

Source§

type ServerConf = ngx_http_core_srv_conf_t

Type for server-specific module configuration
Source§

fn server_conf(o: &impl HttpModuleConfExt) -> Option<&'static Self::ServerConf>

Get reference to server-specific module configuration
Source§

fn server_conf_mut( o: &impl HttpModuleConfExt, ) -> Option<&'static mut Self::ServerConf>

Get mutable reference to server-specific module configuration

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.