refactor string / byte reads from buffer

This commit is contained in:
2025-07-01 15:44:21 +02:00
parent 51fdaa4120
commit 02aaef1560
11 changed files with 59 additions and 80 deletions

View File

@@ -6,8 +6,8 @@ pub enum AppError {
Io(#[from] std::io::Error),
#[error("A TryGetError occurred")]
TryGet(#[from] bytes::TryGetError),
#[error("The buffer is missing data for a complete command")]
IncompleteCommandBuffer,
#[error("The buffer is missing data")]
IncompleteBuffer,
#[error("A Utf8Error occurred")]
FromUtf8(#[from] std::string::FromUtf8Error),
#[error("The command {0} was not recognized")]