use crate::error::Error;
#[derive(Debug, Error)]
#[non_exhaustive]
pub enum TokioError {
#[error(transparent)]
Timeout(#[from] tokio::time::error::Elapsed),
#[error(transparent)]
Other(#[from] Box<dyn std::error::Error + Send + Sync>),
}
impl From<tokio::time::error::Elapsed> for Error {
fn from(value: tokio::time::error::Elapsed) -> Self {
Self::Tokio(TokioError::from(value))
}
}