You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/README.md
+2
Original file line number
Diff line number
Diff line change
@@ -41,6 +41,8 @@ pretty_env_logger = "0.4"
41
41
42
42
*[`send_file`](send_file.rs) - A server that sends back content of files using tokio-util to read the files asynchronously.
43
43
44
+
*[`service_struct_impl`](service_struct_impl.rs) - A struct that manually implements the `Service` trait and uses a shared counter across requests.
45
+
44
46
*[`single_threaded`](single_threaded.rs) - A server only running on 1 thread, so it can make use of `!Send` app state (like an `Rc` counter).
45
47
46
48
*[`state`](state.rs) - A webserver showing basic state sharing among requests. A counter is shared, incremented for every request, and every response is sent the last count.
0 commit comments