Skip to main content

run_server

Macro run_server 

Source
macro_rules! run_server {
    (
        state: $state:expr,
        config: $config:expr,
        addr: $addr:expr
        $(, app: { $($app_extra:tt)* })?          // Extra stuff after App::new()
        $(, server: { $($server_extra:tt)* })?    // Extra stuff after .bind()
        $(,)?                                      // Optional trailing comma
    ) => { ... };
}