#[repr(C)]pub struct ngx_module_s {Show 25 fields
pub ctx_index: usize,
pub index: usize,
pub name: *mut i8,
pub spare0: usize,
pub spare1: usize,
pub version: usize,
pub signature: *const i8,
pub ctx: *mut c_void,
pub commands: *mut ngx_command_s,
pub type_: usize,
pub init_master: Option<unsafe extern "C" fn(_: *mut ngx_log_s) -> isize>,
pub init_module: Option<unsafe extern "C" fn(_: *mut ngx_cycle_s) -> isize>,
pub init_process: Option<unsafe extern "C" fn(_: *mut ngx_cycle_s) -> isize>,
pub init_thread: Option<unsafe extern "C" fn(_: *mut ngx_cycle_s) -> isize>,
pub exit_thread: Option<unsafe extern "C" fn(_: *mut ngx_cycle_s)>,
pub exit_process: Option<unsafe extern "C" fn(_: *mut ngx_cycle_s)>,
pub exit_master: Option<unsafe extern "C" fn(_: *mut ngx_cycle_s)>,
pub spare_hook0: usize,
pub spare_hook1: usize,
pub spare_hook2: usize,
pub spare_hook3: usize,
pub spare_hook4: usize,
pub spare_hook5: usize,
pub spare_hook6: usize,
pub spare_hook7: usize,
}
Fields§
§ctx_index: usize
§index: usize
§name: *mut i8
§spare0: usize
§spare1: usize
§version: usize
§signature: *const i8
§ctx: *mut c_void
§commands: *mut ngx_command_s
§type_: usize
§init_master: Option<unsafe extern "C" fn(_: *mut ngx_log_s) -> isize>
§init_module: Option<unsafe extern "C" fn(_: *mut ngx_cycle_s) -> isize>
§init_process: Option<unsafe extern "C" fn(_: *mut ngx_cycle_s) -> isize>
§init_thread: Option<unsafe extern "C" fn(_: *mut ngx_cycle_s) -> isize>
§exit_thread: Option<unsafe extern "C" fn(_: *mut ngx_cycle_s)>
§exit_process: Option<unsafe extern "C" fn(_: *mut ngx_cycle_s)>
§exit_master: Option<unsafe extern "C" fn(_: *mut ngx_cycle_s)>
§spare_hook0: usize
§spare_hook1: usize
§spare_hook2: usize
§spare_hook3: usize
§spare_hook4: usize
§spare_hook5: usize
§spare_hook6: usize
§spare_hook7: usize
Implementations§
Source§impl ngx_module_s
impl ngx_module_s
Sourcepub const fn default() -> ngx_module_s
pub const fn default() -> ngx_module_s
Create a new ngx_module_t
instance with default values.
Trait Implementations§
Source§impl Clone for ngx_module_s
impl Clone for ngx_module_s
Source§fn clone(&self) -> ngx_module_s
fn clone(&self) -> ngx_module_s
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ngx_module_s
impl Debug for ngx_module_s
impl Copy for ngx_module_s
Auto Trait Implementations§
impl Freeze for ngx_module_s
impl RefUnwindSafe for ngx_module_s
impl !Send for ngx_module_s
impl !Sync for ngx_module_s
impl Unpin for ngx_module_s
impl UnwindSafe for ngx_module_s
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more