#[derive(Debug, PartialEq, Eq)]
pub enum PollOutcome<T> {
Interrupted(Option<T>),
NoInterrupt(T),
}
#[cfg(test)]
mod tests {
use super::PollOutcome;
#[test]
fn debug() {
assert_eq!(
"Interrupted(Some(1))",
format!("{:?}", PollOutcome::Interrupted(Some(1)))
);
}
}