sentinelpass-protocol 0.11.0

Stable IPC protocol contract for SentinelPass daemon clients (message types, envelope, framing, client)
Documentation
//! Protocol-level errors.

use thiserror::Error;

/// Errors returned by protocol operations (client I/O, token management,
/// frame crypto).
#[derive(Error, Debug)]
pub enum ProtocolError {
    #[error("I/O error: {0}")]
    Io(#[from] std::io::Error),

    #[error("IPC error: {0}")]
    Ipc(String),

    /// The daemon rejected an application-service call with a typed error
    /// (WBS-408): (code, message).
    #[error("service error [{0}]: {1}")]
    Service(String, String),
}