pub struct ModuleStartup { /* private fields */ }Expand description
Artifacts from the ModuleBuilder that should be revisited inside the
extension startup function.
Implementations§
Source§impl ModuleStartup
impl ModuleStartup
Sourcepub fn startup(&self, ty: i32, mod_num: i32) -> Result<()>
pub fn startup(&self, ty: i32, mod_num: i32) -> Result<()>
Completes startup of the module. Should only be called inside the module
startup function, which runs again when the SAPI starts the module again
in the same process (e.g. a FrankenPHP worker restart): everything is
registered anew each time.
§Errors
- Returns an error if a constant, interface, class or enum could not be
registered. The generated MINIT then returns
FAILUREand PHP refuses to start the module.
Auto Trait Implementations§
impl !RefUnwindSafe for ModuleStartup
impl !Sync for ModuleStartup
impl !UnwindSafe for ModuleStartup
impl Freeze for ModuleStartup
impl Send for ModuleStartup
impl Unpin for ModuleStartup
impl UnsafeUnpin for ModuleStartup
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