gloo_history/
error.rs

1use thiserror::Error;
2
3/// The Error type for History.
4#[derive(Error, Debug)]
5pub enum HistoryError {
6    /// Failed to serialize query.
7    #[cfg(feature = "query")]
8    #[error("failed to serialize query.")]
9    QuerySer(#[from] serde_urlencoded::ser::Error),
10    /// Failed to deserialize query.
11    #[cfg(feature = "query")]
12    #[error("failed to deserialize query.")]
13    QueryDe(#[from] serde_urlencoded::de::Error),
14}
15
16/// The Result type for History.
17pub type HistoryResult<T, E = HistoryError> = std::result::Result<T, E>;