bounded_taskpool/
errors.rs

1/// Sign in errors
2#[derive(thiserror::Error, Debug)]
3pub enum TaskPoolError {
4    /// Insertion in the queue has timeout, meaning the queue is already full
5    /// and is full for too long
6    #[error("failed to schedule task in pool: send timeout")]
7    SendTimeout,
8
9    /// The channel queue has been closed
10    #[error("failed to schedule task in pool: channel closed")]
11    ChannelClosed,
12
13    /// Can't send a task
14    #[error("failed to schedule task in pool: can't send")]
15    FailedToSend,
16}