use std::convert::Infallible;
use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(tag = "message", rename_all = "snake_case")]
pub enum EchoEvent {
Pong,
}
impl From<Infallible> for EchoEvent {
fn from(_: Infallible) -> Self {
panic!("Infallible cannot be instantiated")
}
}