Attribute Macro one_shot

Source
#[one_shot]
Expand description

§Syntax

#[one_shot(60)]

§Attributes

  • "path": Raw literal string with path for which to register handler.

§Examples

#[one_shot(60)]
async fn example() {
    println!("hello world");
}