File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -126,6 +126,19 @@ impl ModuleBuilder {
126
126
self
127
127
}
128
128
129
+ /// Sets the post request shutdown function for the extension.
130
+ ///
131
+ /// This function can be useful if you need to do any final cleanup at the
132
+ /// very end of a request, after all other resources have been released. For
133
+ /// example, if your extension creates any persistent resources that last
134
+ /// beyond a single request, you could use this function to clean those up. # Arguments
135
+ ///
136
+ /// * `func` - The function to be called when shutdown is requested.
137
+ pub fn post_deactivate_function ( mut self , func : extern "C" fn ( ) -> i32 ) -> Self {
138
+ self . module . post_deactivate_func = Some ( func) ;
139
+ self
140
+ }
141
+
129
142
/// Sets the extension information function for the extension.
130
143
///
131
144
/// # Arguments
You can’t perform that action at this time.
0 commit comments