protocol-core 0.3.12

Reusable mesh protocol framing, sync, and repair primitives.
Documentation
1
2
3
4
5
6
7
8
9
10
//! Error types for protocol-core.

#[derive(Debug, thiserror::Error)]
pub enum ProtocolError {
    #[error("invalid envelope: {0}")]
    InvalidEnvelope(String),

    #[error("invalid dCBOR encoding: {0}")]
    InvalidEncoding(String),
}