Macro plumber_rs::export_bootstrap[][src]

macro_rules! export_bootstrap {
    ($bs:ty) => { ... };
}

The macro that is used to export the servlet to the shared object that can be loaded by Plumber-Rust binary loader. This macro will emit all the function that is required by the Plumber-Rust binary loader.

It calls the helper function, which translates the Plumber servlet calls into a Rust fashion. All the functions under plumber_rs::rust_servlet serves this purpose. So if you need to call any function under plumber_rs::rust_servlet, something is probably wrong.

This macro is the only correct way to use the plumber_rs::rust_servlet module

To invoke this macro, you need a bootstrap class which carries all the information about the Rust servlet. The bootstrap servlet must implemement trait plumber_rs::servlet::Bootstrap