Enum tor_rtcompat::scheduler::SleepError
source · #[non_exhaustive]
pub enum SleepError {
ScheduleDropped,
}Expand description
An error returned while telling a TaskSchedule to sleep.
Unlike regular “sleep” functions, the sleep operations on a TaskSchedule
can fail because there are no TaskHandles left.
Note that it is not an error if the sleep function is interrupted,
cancelled, or or rescheduled for a later time: See TaskSchedule::sleep
for more information.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ScheduleDropped
The final TaskHandle for this TaskSchedule has been dropped: the
task should exit.
Trait Implementations§
source§impl Clone for SleepError
impl Clone for SleepError
source§fn clone(&self) -> SleepError
fn clone(&self) -> SleepError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for SleepError
impl Debug for SleepError
source§impl Display for SleepError
impl Display for SleepError
source§impl Error for SleepError
impl Error for SleepError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()