oko_mdns/
errors.rs

1
2#[cfg(feature = "runtime-async-std")]
3pub use async_std::future::TimeoutError;
4
5#[cfg(feature = "runtime-tokio")]
6pub use tokio::time::error::Elapsed as TimeoutError;
7
8#[derive(Debug, thiserror::Error)]
9pub enum Error {
10    #[error(transparent)]
11    Io(#[from] std::io::Error),
12    #[error(transparent)]
13    Dns(#[from] dns_parser::Error),
14    #[error(transparent)]
15    TimeoutError(#[from] TimeoutError),
16}