1 2 3 4 5 6 7 8 9
use crate::ClientId; pub type CometdResult<T> = Result<T, CometdError>; #[derive(Debug, thiserror::Error)] pub enum CometdError { #[error("Client with id {0} doesn't exist.")] ClientDoesntExist(ClientId), }