docs: improve run() docs
This commit is contained in:
parent
45679ec98a
commit
602c69ef19
1 changed files with 2 additions and 0 deletions
|
@ -12,6 +12,8 @@ use rocket;
|
||||||
use crate::data::Config;
|
use crate::data::Config;
|
||||||
|
|
||||||
/// Runs the server
|
/// Runs the server
|
||||||
|
///
|
||||||
|
/// Returns `Ok(true)` if it succeeds, otherwise returns the error from Rocket
|
||||||
pub async fn run(conf: data::Config) -> Result<bool, rocket::Error> {
|
pub async fn run(conf: data::Config) -> Result<bool, rocket::Error> {
|
||||||
match rocket::build()
|
match rocket::build()
|
||||||
.mount(
|
.mount(
|
||||||
|
|
Loading…
Reference in a new issue