Closed LeoniePhiline closed 2 weeks ago
The mutable app state example at https://ntex.rs/docs/application#shared-mutable-state mentions web::Data.
web::Data
Maybe web::types::State is meant?
web::types::State
Since what is being created is a plain struct, this could be reworded to // Note: App state created _outside_ HttpServer::new closure.
// Note: App state created _outside_ HttpServer::new closure
Please let me know if I misunderstood. If not, then I'll be happy to PR the fix.
Hey @LeoniePhiline, sorry for the late reply, i didn't get notified. You're right web::types::State is meant! You can open a pull request if you want!
The mutable app state example at https://ntex.rs/docs/application#shared-mutable-state mentions
web::Data
.Maybe
web::types::State
is meant?Since what is being created is a plain struct, this could be reworded to
// Note: App state created _outside_ HttpServer::new closure
.Please let me know if I misunderstood. If not, then I'll be happy to PR the fix.