added webapi sketch

This commit is contained in:
peppidesu 2024-10-19 15:06:56 +02:00
parent 6c6e131e61
commit b3e25cd706
No known key found for this signature in database
GPG key ID: 4E9BA776E329260F
5 changed files with 852 additions and 35 deletions

View file

@ -1,9 +1,9 @@
use std::{
collections::VecDeque,
fs::{create_dir_all, File},
io::{self, Error, ErrorKind},
io,
path::Path,
sync::{atomic::AtomicU64, Arc},
sync::Arc,
time::Duration,
};
@ -17,9 +17,8 @@ use flurry::{
};
use image::{codecs::jpeg::JpegEncoder, GenericImageView, SubImage};
use tokio::{
io::{AsyncReadExt, AsyncWriteExt, BufReader, BufWriter},
net::TcpListener,
time::{interval, sleep, timeout, Instant},
time::interval
};
/// This function logs the current amount of changed pixels to stdout every second