1 2 3 4 5 6 7 8 9 10 11 12 13 14
//! 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), }