use thiserror::Error;
#[derive(Error, Debug, Clone)]
pub enum TimeError {
#[error("A method with a time input has been told to wait for a time that already happened.")]
ThatTimeHasAlreadyHappened,
#[error("Attempted to call a time based method on a paused EventSync.")]
EventSyncPaused,
#[error("Attempted to start an EventSync, but an unexpected error occurred.")]
FailedToStartEventSync,
}
impl PartialEq for TimeError {
fn eq(&self, other: &Self) -> bool {
std::mem::discriminant(self) == std::mem::discriminant(other)
}
}
impl Eq for TimeError {}