[−][src]Macro vial::run_with_banner
Same as vial::run!()
, but allows setting a banner that will be
printed to the console when your Vial web app starts.
You can use {} in place of the server's address. For example:
ⓘThis example is not tested
fn main() { vial::run_with_banner!("--> deadwiki started at {}").unwrap(); }
When we start this app, we'll see this:
ⓘThis example is not tested
--> deadwiki started at http://0.0.0.0:7667
Instead of the usual:
ⓘThis example is not tested
~ vial running at http://0.0.0.0:7667