Struct ext_php_rs::ffi::_sapi_globals_struct
source · #[repr(C)]pub struct _sapi_globals_struct {Show 17 fields
pub server_context: *mut c_void,
pub request_info: sapi_request_info,
pub sapi_headers: sapi_headers_struct,
pub read_post_bytes: i64,
pub post_read: c_uchar,
pub headers_sent: c_uchar,
pub global_stat: zend_stat_t,
pub default_mimetype: *mut c_char,
pub default_charset: *mut c_char,
pub rfc1867_uploaded_files: *mut HashTable,
pub post_max_size: zend_long,
pub options: c_int,
pub sapi_started: bool,
pub global_request_time: f64,
pub known_post_content_types: HashTable,
pub callback_func: zval,
pub fci_cache: zend_fcall_info_cache,
}
Fields§
§server_context: *mut c_void
§request_info: sapi_request_info
§sapi_headers: sapi_headers_struct
§read_post_bytes: i64
§post_read: c_uchar
§headers_sent: c_uchar
§global_stat: zend_stat_t
§default_mimetype: *mut c_char
§default_charset: *mut c_char
§rfc1867_uploaded_files: *mut HashTable
§post_max_size: zend_long
§options: c_int
§sapi_started: bool
§global_request_time: f64
§known_post_content_types: HashTable
§callback_func: zval
§fci_cache: zend_fcall_info_cache
Implementations§
source§impl _sapi_globals_struct
impl _sapi_globals_struct
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 request_info(&self) -> &sapi_request_info
pub fn sapi_headers(&self) -> &sapi_headers_struct
Auto Trait Implementations§
impl RefUnwindSafe for _sapi_globals_struct
impl !Send for _sapi_globals_struct
impl !Sync for _sapi_globals_struct
impl Unpin for _sapi_globals_struct
impl UnwindSafe for _sapi_globals_struct
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