webterm-agent 0.2.5

Lightweight agent component for Webterm that enables secure browser-based terminal access
Documentation
use std::fmt;

// Errors which are ok to crash the agent
#[derive(Debug)]
pub enum PanicError {
    RuntimeError(String),
    RelayParseError(String),
}

impl std::error::Error for PanicError {}

impl fmt::Display for PanicError {
    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
        match self {
            PanicError::RuntimeError(e) => write!(f, "Runtime error: {}", e),
            PanicError::RelayParseError(e) => write!(f, "Relay parse error: {}", e),
        }
    }
}