async_callback_manager/error.rs
1pub type Result<T> = std::result::Result<T, Error>;
2
3#[derive(Debug)]
4pub enum Error {
5 ReceiverDropped,
6}
7
8impl std::error::Error for Error {}
9impl std::fmt::Display for Error {
10 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
11 match self {
12 Error::ReceiverDropped => write!(f, "Error sending to a channel, receiver dropped."),
13 }
14 }
15}