feat: initial work on tenor gif searching

This commit is contained in:
Zomatree
2025-09-18 21:23:37 +01:00
parent cc7a7962a8
commit 797016fd2b
20 changed files with 1268 additions and 524 deletions
+20
View File
@@ -0,0 +1,20 @@
use std::fmt::Display;
#[derive(Clone, PartialEq, Eq, Debug)]
pub enum Error {
RecvError,
MaxConcurrent,
MaxQueue,
}
impl Display for Error {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
Error::RecvError => write!(f, "Unable to receive data from the channel"),
Error::MaxConcurrent => write!(f, "Max number of tasks running at once"),
Error::MaxQueue => write!(f, "Max number of tasks in queue"),
}
}
}
impl std::error::Error for Error {}