Rust AppView - highly experimental!
at main 12 lines 353 B view raw
1use std::io::Error as IoError; 2use thiserror::Error; 3 4#[derive(Debug, Error)] 5pub enum FirehoseError { 6 #[error("{0}")] 7 Cbor(#[from] ciborium::de::Error<IoError>), 8 #[error("{0}")] 9 IpldCbor(#[from] serde_ipld_dagcbor::error::DecodeError<IoError>), 10 #[error("{0}")] 11 Websocket(#[from] tokio_tungstenite::tungstenite::error::Error), 12}