pub struct BootOptions<'a> {
pub hooks: SharedHooks,
pub preload: &'a [(&'a str, &'a str)],
pub areas: Vec<Rc<dyn NativeArea>>,
}Expand description
What Php::boot needs.
Fields§
§hooks: SharedHooksThe hook registry PHP’s SpeedySpec\Hooks\Hook uses.
preload: &'a [(&'a str, &'a str)](file name, PHP source) pairs evaluated at boot, in order, before
any other PHP code. The source is a file’s content, <?php tag and
all; the name stands in for the file name in PHP’s messages.
areas: Vec<Rc<dyn NativeArea>>The extension’s native areas: their functions and classes are registered at module startup, and their request hooks run on every request.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for BootOptions<'a>
impl<'a> !Send for BootOptions<'a>
impl<'a> !Sync for BootOptions<'a>
impl<'a> !UnwindSafe for BootOptions<'a>
impl<'a> Forget for BootOptions<'a>
impl<'a> Freeze for BootOptions<'a>
impl<'a> Move for BootOptions<'a>
impl<'a> Unpin for BootOptions<'a>
impl<'a> UnsafeUnpin for BootOptions<'a>
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