Module plumber_rs::rust_servlet [−][src]
The hepler function used by the Rust servlet.
All the function defines in this file should only be used by calling export_bootstrap
macro.
Functions
call_bootstrap_obj⚠ |
Call the bootstrap object for the given servlet. A bootstrap object is a rust object that carries all the information that is needed by the Plumber Rust servlet loader to complete the initialization step |
invoke_servlet_async_cleanup |
The helper to invoke the async task's cleanup step. This function should be used by Plumber framework when the async task has completed. This function should be called from the same worker thread as the async task init step. |
invoke_servlet_async_exec |
The helper to invoke the async task execution step of an async servlet. This function should be used by Plumber framework when the async task is ready to run. This function should be called from any async processing thread owned by Plumber framework. |
invoke_servlet_async_init |
The helper function to invoke the task initialization step of an asynchronous servlet. This function should be used by the Plumber framework when an asynchronous servlet needs to be activated. This function should be called from any of the worker thread, it's responsible for create a private task data which can be used by the servlet later. |
invoke_servlet_cleanup |
The helper to invoke the cleanup function. This function is called by the Plumber framework when the Plumber application is terminated and the servlet should be finalized. |
invoke_servlet_init |
The helper function to invoke the servlet's initialization function. This is called by the Plumber framework when before the application gets started |
invoke_servlet_sync_exec |
The helper function to invoke a synchronous servlet's exec callback. This function is called by the Plumber framework from any of the worker thread when the framework decide to activate the servlet. |