Added new callback types

This commit is contained in:
2023-07-25 17:44:12 +03:00
parent c682fd310b
commit 64a5435dc3
8 changed files with 168 additions and 70 deletions

View File

@@ -5,3 +5,13 @@ pub struct NoUserInfo;
#[derive(thiserror::Error, Debug)]
#[error("Handler was already used")]
pub struct HandlerUsed;
#[derive(thiserror::Error, Debug)]
pub enum InvalidCommand {
#[error("Invalid params")]
InvalidParams,
#[error("Not enough bytes in the name's hash")]
OutputTooShort,
#[error("Error decoding the values: {0}")]
NameDecodingError(#[from] base64::DecodeSliceError),
}