Closed aleeusgr closed 10 months ago
https://dev.to/dalalrohit/live-stream-your-webcam-to-html-page-3ehf https://docs.rs/nokhwa/latest/nokhwa/ https://crates.io/keywords/webcam https://www.reddit.com/r/rust/comments/3eab0m/how_do_i_capture_a_webcam_feed/
[alex@nixos:~/workshop/efected-coto-emmory]$ cargo run
Compiling efected-coto-emmory v0.1.0 (/home/alex/workshop/efected-coto-emmory)
error[E0583]: file not found for module `handlers`
--> src/main.rs:45:1
|
45 | pub mod handlers; // notice this line
| ^^^^^^^^^^^^^^^^^
|
= help: to create the module `handlers`, create file "src/handlers.rs" or "src/handlers/mod.rs"
error[E0433]: failed to resolve: could not find `log` in `handlers`
--> src/main.rs:115:48
|
115 | .route("/say-hello", get(handlers::log::say_hello)) // change handler
| ^^^ could not find `log` in `handlers`
Some errors have detailed explanations: E0433, E0583.
For more information about an error, try `rustc --explain E0433`.
error: could not compile `efected-coto-emmory` (bin "efected-coto-emmory-app") due to 2 previous errors
write a handler, an async function that returns something that can be converted into a response.
Anything that implements IntoResponse can be returned from a handler.
What about a stream, can stream implement IntoResponse? or how does it actually happen?
https://docs.rs/axum/latest/axum/index.html#routing https://github.com/ulid/spec