docs: improve run() docs

This commit is contained in:
askiiart 2024-12-02 10:06:44 -06:00
parent 45679ec98a
commit 602c69ef19
Signed by untrusted user who does not match committer: askiiart
GPG key ID: EA85979611654C30

View file

@ -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(