Attribute Macro ntex::main

source ·
#[main]
Expand description

Marks async function to be executed by ntex system.

§Usage

#[ntex::main]
async fn main() {
    println!("Hello world");
}