pub enum PhpMode {
Classic,
Worker {
script: String,
},
}Expand description
How PHP scripts are executed.
Variants§
Classic
One php_execute_script() per request. Simple, compatible with everything.
Worker
Boot a worker script once; dispatch requests to its bext_handle_request() loop.
Eliminates per-request framework bootstrap (~3ms for Laravel).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PhpMode
impl RefUnwindSafe for PhpMode
impl Send for PhpMode
impl Sync for PhpMode
impl Unpin for PhpMode
impl UnsafeUnpin for PhpMode
impl UnwindSafe for PhpMode
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