Struct ngx_event_s

Source
#[repr(C)]
pub struct ngx_event_s { pub data: *mut c_void, pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 3]>, pub available: i32, pub handler: Option<unsafe extern "C" fn(_: *mut ngx_event_s)>, pub index: usize, pub log: *mut ngx_log_s, pub timer: ngx_rbtree_node_s, pub queue: ngx_queue_s, }

Fields§

§data: *mut c_void§_bitfield_align_1: [u8; 0]§_bitfield_1: __BindgenBitfieldUnit<[u8; 3]>§available: i32§handler: Option<unsafe extern "C" fn(_: *mut ngx_event_s)>§index: usize§log: *mut ngx_log_s§timer: ngx_rbtree_node_s§queue: ngx_queue_s

Implementations§

Source§

impl ngx_event_s

Source

pub fn write(&self) -> u32

Source

pub fn set_write(&mut self, val: u32)

Source

pub unsafe fn write_raw(this: *const ngx_event_s) -> u32

Source

pub unsafe fn set_write_raw(this: *mut ngx_event_s, val: u32)

Source

pub fn accept(&self) -> u32

Source

pub fn set_accept(&mut self, val: u32)

Source

pub unsafe fn accept_raw(this: *const ngx_event_s) -> u32

Source

pub unsafe fn set_accept_raw(this: *mut ngx_event_s, val: u32)

Source

pub fn instance(&self) -> u32

Source

pub fn set_instance(&mut self, val: u32)

Source

pub unsafe fn instance_raw(this: *const ngx_event_s) -> u32

Source

pub unsafe fn set_instance_raw(this: *mut ngx_event_s, val: u32)

Source

pub fn active(&self) -> u32

Source

pub fn set_active(&mut self, val: u32)

Source

pub unsafe fn active_raw(this: *const ngx_event_s) -> u32

Source

pub unsafe fn set_active_raw(this: *mut ngx_event_s, val: u32)

Source

pub fn disabled(&self) -> u32

Source

pub fn set_disabled(&mut self, val: u32)

Source

pub unsafe fn disabled_raw(this: *const ngx_event_s) -> u32

Source

pub unsafe fn set_disabled_raw(this: *mut ngx_event_s, val: u32)

Source

pub fn ready(&self) -> u32

Source

pub fn set_ready(&mut self, val: u32)

Source

pub unsafe fn ready_raw(this: *const ngx_event_s) -> u32

Source

pub unsafe fn set_ready_raw(this: *mut ngx_event_s, val: u32)

Source

pub fn oneshot(&self) -> u32

Source

pub fn set_oneshot(&mut self, val: u32)

Source

pub unsafe fn oneshot_raw(this: *const ngx_event_s) -> u32

Source

pub unsafe fn set_oneshot_raw(this: *mut ngx_event_s, val: u32)

Source

pub fn complete(&self) -> u32

Source

pub fn set_complete(&mut self, val: u32)

Source

pub unsafe fn complete_raw(this: *const ngx_event_s) -> u32

Source

pub unsafe fn set_complete_raw(this: *mut ngx_event_s, val: u32)

Source

pub fn eof(&self) -> u32

Source

pub fn set_eof(&mut self, val: u32)

Source

pub unsafe fn eof_raw(this: *const ngx_event_s) -> u32

Source

pub unsafe fn set_eof_raw(this: *mut ngx_event_s, val: u32)

Source

pub fn error(&self) -> u32

Source

pub fn set_error(&mut self, val: u32)

Source

pub unsafe fn error_raw(this: *const ngx_event_s) -> u32

Source

pub unsafe fn set_error_raw(this: *mut ngx_event_s, val: u32)

Source

pub fn timedout(&self) -> u32

Source

pub fn set_timedout(&mut self, val: u32)

Source

pub unsafe fn timedout_raw(this: *const ngx_event_s) -> u32

Source

pub unsafe fn set_timedout_raw(this: *mut ngx_event_s, val: u32)

Source

pub fn timer_set(&self) -> u32

Source

pub fn set_timer_set(&mut self, val: u32)

Source

pub unsafe fn timer_set_raw(this: *const ngx_event_s) -> u32

Source

pub unsafe fn set_timer_set_raw(this: *mut ngx_event_s, val: u32)

Source

pub fn delayed(&self) -> u32

Source

pub fn set_delayed(&mut self, val: u32)

Source

pub unsafe fn delayed_raw(this: *const ngx_event_s) -> u32

Source

pub unsafe fn set_delayed_raw(this: *mut ngx_event_s, val: u32)

Source

pub fn deferred_accept(&self) -> u32

Source

pub fn set_deferred_accept(&mut self, val: u32)

Source

pub unsafe fn deferred_accept_raw(this: *const ngx_event_s) -> u32

Source

pub unsafe fn set_deferred_accept_raw(this: *mut ngx_event_s, val: u32)

Source

pub fn pending_eof(&self) -> u32

Source

pub fn set_pending_eof(&mut self, val: u32)

Source

pub unsafe fn pending_eof_raw(this: *const ngx_event_s) -> u32

Source

pub unsafe fn set_pending_eof_raw(this: *mut ngx_event_s, val: u32)

Source

pub fn posted(&self) -> u32

Source

pub fn set_posted(&mut self, val: u32)

Source

pub unsafe fn posted_raw(this: *const ngx_event_s) -> u32

Source

pub unsafe fn set_posted_raw(this: *mut ngx_event_s, val: u32)

Source

pub fn closed(&self) -> u32

Source

pub fn set_closed(&mut self, val: u32)

Source

pub unsafe fn closed_raw(this: *const ngx_event_s) -> u32

Source

pub unsafe fn set_closed_raw(this: *mut ngx_event_s, val: u32)

Source

pub fn channel(&self) -> u32

Source

pub fn set_channel(&mut self, val: u32)

Source

pub unsafe fn channel_raw(this: *const ngx_event_s) -> u32

Source

pub unsafe fn set_channel_raw(this: *mut ngx_event_s, val: u32)

Source

pub fn resolver(&self) -> u32

Source

pub fn set_resolver(&mut self, val: u32)

Source

pub unsafe fn resolver_raw(this: *const ngx_event_s) -> u32

Source

pub unsafe fn set_resolver_raw(this: *mut ngx_event_s, val: u32)

Source

pub fn cancelable(&self) -> u32

Source

pub fn set_cancelable(&mut self, val: u32)

Source

pub unsafe fn cancelable_raw(this: *const ngx_event_s) -> u32

Source

pub unsafe fn set_cancelable_raw(this: *mut ngx_event_s, val: u32)

Source

pub fn new_bitfield_1( write: u32, accept: u32, instance: u32, active: u32, disabled: u32, ready: u32, oneshot: u32, complete: u32, eof: u32, error: u32, timedout: u32, timer_set: u32, delayed: u32, deferred_accept: u32, pending_eof: u32, posted: u32, closed: u32, channel: u32, resolver: u32, cancelable: u32, ) -> __BindgenBitfieldUnit<[u8; 3]>

Trait Implementations§

Source§

impl Clone for ngx_event_s

Source§

fn clone(&self) -> ngx_event_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_event_s

Source§

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

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

impl Copy for ngx_event_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.