Struct ext_php_rs::ffi::php_file_globals
source · #[repr(C)]pub struct php_file_globals {Show 15 fields
pub pclose_ret: c_int,
pub def_chunk_size: usize,
pub auto_detect_line_endings: bool,
pub default_socket_timeout: zend_long,
pub user_agent: *mut c_char,
pub from_address: *mut c_char,
pub user_stream_current_filename: *const c_char,
pub default_context: *mut php_stream_context,
pub stream_wrappers: *mut HashTable,
pub stream_filters: *mut HashTable,
pub wrapper_errors: *mut HashTable,
pub pclose_wait: c_int,
pub tmp_host_info: hostent,
pub tmp_host_buf: *mut c_char,
pub tmp_host_buf_len: usize,
}
Fields§
§pclose_ret: c_int
§def_chunk_size: usize
§auto_detect_line_endings: bool
§default_socket_timeout: zend_long
§user_agent: *mut c_char
§from_address: *mut c_char
§user_stream_current_filename: *const c_char
§default_context: *mut php_stream_context
§stream_wrappers: *mut HashTable
§stream_filters: *mut HashTable
§wrapper_errors: *mut HashTable
§pclose_wait: c_int
§tmp_host_info: hostent
§tmp_host_buf: *mut c_char
§tmp_host_buf_len: usize
Implementations§
source§impl php_file_globals
impl php_file_globals
sourcepub fn get() -> GlobalReadGuard<Self>
pub fn get() -> GlobalReadGuard<Self>
Returns a reference to the PHP process globals.
The process globals are guarded by a RwLock. There can be multiple immutable references at one time but only ever one mutable reference. Attempting to retrieve the globals while already holding the global guard will lead to a deadlock. Dropping the globals guard will release the lock.
sourcepub fn get_mut() -> GlobalWriteGuard<Self>
pub fn get_mut() -> GlobalWriteGuard<Self>
Returns a mutable reference to the PHP executor globals.
The executor globals are guarded by a RwLock. There can be multiple immutable references at one time but only ever one mutable reference. Attempting to retrieve the globals while already holding the global guard will lead to a deadlock. Dropping the globals guard will release the lock.
pub fn stream_wrappers(&self) -> Option<&'static ZendHashTable>
Trait Implementations§
source§impl Clone for php_file_globals
impl Clone for php_file_globals
source§fn clone(&self) -> php_file_globals
fn clone(&self) -> php_file_globals
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 php_file_globals
impl Debug for php_file_globals
impl Copy for php_file_globals
Auto Trait Implementations§
impl RefUnwindSafe for php_file_globals
impl !Send for php_file_globals
impl !Sync for php_file_globals
impl Unpin for php_file_globals
impl UnwindSafe for php_file_globals
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