resp-rs 0.1.8

Zero-copy RESP2 and RESP3 protocol parser and serializer
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Shared types for the Tokio codec integration.

use crate::ParseError;

/// Error type for codec operations, wrapping both parse errors and I/O errors.
#[derive(Debug, thiserror::Error)]
pub enum CodecError {
    /// A RESP protocol parsing error.
    #[error(transparent)]
    Parse(#[from] ParseError),

    /// An I/O error from the underlying transport.
    #[error(transparent)]
    Io(#[from] std::io::Error),
}