#[repr(C)]pub struct ngx_command_s {
pub name: ngx_str_t,
pub type_: usize,
pub set: Option<unsafe extern "C" fn(_: *mut ngx_conf_s, _: *mut ngx_command_s, _: *mut c_void) -> *mut i8>,
pub conf: usize,
pub offset: usize,
pub post: *mut c_void,
}
Fields§
§name: ngx_str_t
§type_: usize
§set: Option<unsafe extern "C" fn(_: *mut ngx_conf_s, _: *mut ngx_command_s, _: *mut c_void) -> *mut i8>
§conf: usize
§offset: usize
§post: *mut c_void
Implementations§
Source§impl ngx_command_s
impl ngx_command_s
Sourcepub const fn empty() -> ngx_command_s
pub const fn empty() -> ngx_command_s
Creates a new empty ngx_command_t
instance.
This method replaces the ngx_null_command
C macro. This is typically used to terminate an
array of configuration directives.
Trait Implementations§
Source§impl Clone for ngx_command_s
impl Clone for ngx_command_s
Source§fn clone(&self) -> ngx_command_s
fn clone(&self) -> ngx_command_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_command_s
impl Debug for ngx_command_s
impl Copy for ngx_command_s
Auto Trait Implementations§
impl Freeze for ngx_command_s
impl RefUnwindSafe for ngx_command_s
impl !Send for ngx_command_s
impl !Sync for ngx_command_s
impl Unpin for ngx_command_s
impl UnwindSafe for ngx_command_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