Struct ngx_module_s

Source
#[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

Source

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

Source§

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)

Performs copy-assignment from source. Read more
Source§

impl Debug for ngx_module_s

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Copy for ngx_module_s

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.