#[repr(C)]pub struct _sapi_globals_struct {Show 18 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,
pub request_parse_body_context: sapi_request_parse_body_context,
}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§request_parse_body_context: sapi_request_parse_body_contextImplementations§
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.
Sourcepub fn request_info(&self) -> &sapi_request_info
pub fn request_info(&self) -> &sapi_request_info
Get the request info for the Sapi.
Sourcepub fn sapi_headers(&self) -> &SapiHeaders
pub fn sapi_headers(&self) -> &SapiHeaders
Get the sapi headers for the Sapi.
Auto Trait Implementations§
impl Freeze for _sapi_globals_struct
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