MCPcopy Create free account
hub / github.com/actix/examples / index

Function index

json/json-error/src/main.rs:28–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26}
27
28async fn index() -> Result<HttpResponse, Error> {
29 Err(Error {
30 msg: "an example error message".to_owned(),
31 status: 400,
32 })
33}
34
35#[actix_web::main]
36async fn main() -> io::Result<()> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected