We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 08de883 + cbc802f commit 32e2af0Copy full SHA for 32e2af0
src/builders/module.rs
@@ -111,7 +111,7 @@ impl ModuleBuilder {
111
///
112
/// * `func` - The function to be called when startup is requested.
113
pub fn request_startup_function(mut self, func: StartupShutdownFunc) -> Self {
114
- self.module.module_startup_func = Some(func);
+ self.module.request_startup_func = Some(func);
115
self
116
}
117
@@ -121,7 +121,7 @@ impl ModuleBuilder {
121
122
/// * `func` - The function to be called when shutdown is requested.
123
pub fn request_shutdown_function(mut self, func: StartupShutdownFunc) -> Self {
124
- self.module.module_shutdown_func = Some(func);
+ self.module.request_shutdown_func = Some(func);
125
126
127
0 commit comments