Skip to main content

BootOptions

Struct BootOptions 

Source
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: SharedHooks

The 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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.