#[repr(C)]pub struct clib_file {Show 14 fields
pub file_descriptor: u32_,
pub flags: u16_,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1]>,
pub polling_thread_index: u32_,
pub index: u32_,
pub private_data: u64_,
pub read_function: clib_file_function_t,
pub write_function: clib_file_function_t,
pub error_function: clib_file_function_t,
pub description: *mut u8_,
pub read_events: u64_,
pub write_events: u64_,
pub error_events: u64_,
}Fields§
§file_descriptor: u32_§flags: u16_§_bitfield_align_1: [u8; 0]§_bitfield_1: __BindgenBitfieldUnit<[u8; 1]>§polling_thread_index: u32_§index: u32_§private_data: u64_§read_function: clib_file_function_t§write_function: clib_file_function_t§error_function: clib_file_function_t§description: *mut u8_§read_events: u64_§write_events: u64_§error_events: u64_Implementations§
Source§impl clib_file
impl clib_file
pub fn active(&self) -> u16_
pub fn set_active(&mut self, val: u16_)
pub unsafe fn active_raw(this: *const Self) -> u16_
pub unsafe fn set_active_raw(this: *mut Self, val: u16_)
pub fn dont_close(&self) -> u16_
pub fn set_dont_close(&mut self, val: u16_)
pub unsafe fn dont_close_raw(this: *const Self) -> u16_
pub unsafe fn set_dont_close_raw(this: *mut Self, val: u16_)
pub fn new_bitfield_1( active: u16_, dont_close: u16_, ) -> __BindgenBitfieldUnit<[u8; 1]>
Trait Implementations§
impl Copy for clib_file
Auto Trait Implementations§
impl Freeze for clib_file
impl RefUnwindSafe for clib_file
impl !Send for clib_file
impl !Sync for clib_file
impl Unpin for clib_file
impl UnsafeUnpin for clib_file
impl UnwindSafe for clib_file
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