1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
use std::io::{ErrorKind};

///
/// Possible error conditions from a `try_sync()` call on the scheduler
///
#[derive(Clone, PartialEq, Debug)]
pub enum TrySyncError {
    /// The queue is busy, so the function has not been executed
    Busy
}

impl Into<ErrorKind> for TrySyncError {
    fn into(self) -> ErrorKind {
        match self {
            TrySyncError::Busy => ErrorKind::WouldBlock
        }
    }
}