#[repr(C)]pub struct ngx_file_s {Show 13 fields
pub fd: i32,
pub name: ngx_str_t,
pub info: stat,
pub offset: i64,
pub sys_offset: i64,
pub log: *mut ngx_log_s,
pub thread_handler: Option<unsafe extern "C" fn(_: *mut ngx_thread_task_s, _: *mut ngx_file_s) -> isize>,
pub thread_ctx: *mut c_void,
pub thread_task: *mut ngx_thread_task_s,
pub aio: *mut ngx_event_aio_s,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1]>,
pub __bindgen_padding_0: [u8; 7],
}
Fields§
§fd: i32
§name: ngx_str_t
§info: stat
§offset: i64
§sys_offset: i64
§log: *mut ngx_log_s
§thread_handler: Option<unsafe extern "C" fn(_: *mut ngx_thread_task_s, _: *mut ngx_file_s) -> isize>
§thread_ctx: *mut c_void
§thread_task: *mut ngx_thread_task_s
§aio: *mut ngx_event_aio_s
§_bitfield_align_1: [u8; 0]
§_bitfield_1: __BindgenBitfieldUnit<[u8; 1]>
§__bindgen_padding_0: [u8; 7]
Implementations§
Source§impl ngx_file_s
impl ngx_file_s
pub fn valid_info(&self) -> u32
pub fn set_valid_info(&mut self, val: u32)
pub unsafe fn valid_info_raw(this: *const ngx_file_s) -> u32
pub unsafe fn set_valid_info_raw(this: *mut ngx_file_s, val: u32)
pub fn directio(&self) -> u32
pub fn set_directio(&mut self, val: u32)
pub unsafe fn directio_raw(this: *const ngx_file_s) -> u32
pub unsafe fn set_directio_raw(this: *mut ngx_file_s, val: u32)
pub fn new_bitfield_1( valid_info: u32, directio: u32, ) -> __BindgenBitfieldUnit<[u8; 1]>
Trait Implementations§
Source§impl Clone for ngx_file_s
impl Clone for ngx_file_s
Source§fn clone(&self) -> ngx_file_s
fn clone(&self) -> ngx_file_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_file_s
impl Debug for ngx_file_s
impl Copy for ngx_file_s
Auto Trait Implementations§
impl Freeze for ngx_file_s
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§
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