mirror of
https://github.com/danog/ext-php-rs.git
synced 2024-11-30 04:39:04 +01:00
Merge pull request #119 from glyphpoch/fix_request_start_shutdown_funcs
Fix request_(startup|shutdown)_function in ModuleBuilder
This commit is contained in:
commit
32e2af0ba5
@ -111,7 +111,7 @@ impl ModuleBuilder {
|
|||||||
///
|
///
|
||||||
/// * `func` - The function to be called when startup is requested.
|
/// * `func` - The function to be called when startup is requested.
|
||||||
pub fn request_startup_function(mut self, func: StartupShutdownFunc) -> Self {
|
pub fn request_startup_function(mut self, func: StartupShutdownFunc) -> Self {
|
||||||
self.module.module_startup_func = Some(func);
|
self.module.request_startup_func = Some(func);
|
||||||
self
|
self
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -121,7 +121,7 @@ impl ModuleBuilder {
|
|||||||
///
|
///
|
||||||
/// * `func` - The function to be called when shutdown is requested.
|
/// * `func` - The function to be called when shutdown is requested.
|
||||||
pub fn request_shutdown_function(mut self, func: StartupShutdownFunc) -> Self {
|
pub fn request_shutdown_function(mut self, func: StartupShutdownFunc) -> Self {
|
||||||
self.module.module_shutdown_func = Some(func);
|
self.module.request_shutdown_func = Some(func);
|
||||||
self
|
self
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user