[][src]Struct nginx::ngx_file_s

#[repr(C)]pub struct ngx_file_s {
    pub fd: ngx_fd_t,
    pub name: ngx_str_t,
    pub info: ngx_file_info_t,
    pub offset: off_t,
    pub sys_offset: off_t,
    pub log: *mut ngx_log_t,
    pub thread_handler: Option<unsafe extern "C" fn(task: *mut ngx_thread_task_t, file: *mut ngx_file_t) -> ngx_int_t>,
    pub thread_ctx: *mut c_void,
    pub thread_task: *mut ngx_thread_task_t,
    pub aio: *mut ngx_event_aio_t,
    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1], u8>,
    pub __bindgen_padding_0: [u8; 7],
}

Fields

fd: ngx_fd_tname: ngx_str_tinfo: ngx_file_info_toffset: off_tsys_offset: off_tlog: *mut ngx_log_tthread_handler: Option<unsafe extern "C" fn(task: *mut ngx_thread_task_t, file: *mut ngx_file_t) -> ngx_int_t>thread_ctx: *mut c_voidthread_task: *mut ngx_thread_task_taio: *mut ngx_event_aio_t_bitfield_1: __BindgenBitfieldUnit<[u8; 1], u8>__bindgen_padding_0: [u8; 7]

Implementations

impl ngx_file_s[src]

pub fn valid_info(&self) -> c_uint[src]

pub fn set_valid_info(&mut self, val: c_uint)[src]

pub fn directio(&self) -> c_uint[src]

pub fn set_directio(&mut self, val: c_uint)[src]

pub fn new_bitfield_1(
    valid_info: c_uint,
    directio: c_uint
) -> __BindgenBitfieldUnit<[u8; 1], u8>
[src]

Trait Implementations

impl Clone for ngx_file_s[src]

impl Copy for ngx_file_s[src]

impl Debug for ngx_file_s[src]

Auto Trait Implementations

impl RefUnwindSafe for ngx_file_s

impl !Send for ngx_file_s

impl !Sync for ngx_file_s

impl Unpin for ngx_file_s

impl UnwindSafe for ngx_file_s

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.