Enum ctrlc_async::Error [−][src]
pub enum Error {
NoSuchSignal(SignalType),
MultipleHandlers,
NoHandler,
System(Error),
}Expand description
Ctrl-C error.
Variants
NoSuchSignal(SignalType)Signal could not be found from the system.
Tuple Fields of NoSuchSignal
0: SignalTypeCtrl-C signal handler already registered.
The handler has exited.
System(Error)Unexpected system error.
Tuple Fields of System
0: ErrorTrait Implementations
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
👎 Deprecated since 1.33.0:
replaced by Error::source, which can support downcasting
The lower-level source of this error, if any. Read more