1 2 3 4 5 6 7 8 9 10 11 12 13 14
#[derive(Debug, thiserror::Error)]
pub enum Error {
/// Awaitable is not initialized yet.
#[error("Awaitable is not initialized yet.")]
Uninitialized,
/// Awaitable is already consumed but not yet reset.
#[error("Awaitable is already consumed but not yet reset.")]
AlreadyConsumed,
/// Awaitable is marked done twice.
#[error("Awaitable is marked done twice.")]
AlreadyDone,
}