feat: initial work on tenor gif searching

This commit is contained in:
Zomatree
2025-08-08 00:16:20 +01:00
committed by Angelo Kontaxis
parent bfe4018e43
commit b0c977b324
20 changed files with 1268 additions and 524 deletions

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 {}