#[non_exhaustive]pub struct SapiConfig {
pub sapi_name: String,
pub pretty_name: String,
pub server_software: String,
pub ini_entries: Vec<(String, String)>,
pub ignore_php_ini: bool,
pub ignore_cwd_ini: bool,
pub ini_path: Option<String>,
/* private fields */
}Expand description
SAPI identity and PHP startup configuration.
Apply before first super::RiphtSapi::instance() call via
super::RiphtSapi::configure(). Defaults match the hardcoded
values from prior releases.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.sapi_name: String§pretty_name: String§server_software: String§ini_entries: Vec<(String, String)>§ignore_php_ini: bool§ignore_cwd_ini: bool§ini_path: Option<String>Implementations§
Source§impl SapiConfig
impl SapiConfig
pub fn new() -> Self
pub fn sapi_name(self, name: impl Into<String>) -> Self
pub fn pretty_name(self, name: impl Into<String>) -> Self
pub fn server_software(self, software: impl Into<String>) -> Self
pub fn ini_entries(self, entries: Vec<(String, String)>) -> Self
pub fn ini_entry(self, key: impl Into<String>, value: impl Into<String>) -> Self
pub fn ignore_php_ini(self, ignore: bool) -> Self
pub fn ignore_cwd_ini(self, ignore: bool) -> Self
pub fn ini_path(self, path: impl Into<String>) -> Self
pub fn native_functions(self, entries: &'static [NativeFunction]) -> Self
Trait Implementations§
Source§impl Clone for SapiConfig
impl Clone for SapiConfig
Source§fn clone(&self) -> SapiConfig
fn clone(&self) -> SapiConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SapiConfig
impl Debug for SapiConfig
Auto Trait Implementations§
impl Freeze for SapiConfig
impl RefUnwindSafe for SapiConfig
impl Send for SapiConfig
impl Sync for SapiConfig
impl Unpin for SapiConfig
impl UnsafeUnpin for SapiConfig
impl UnwindSafe for SapiConfig
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