pub enum SignalManagerError {
UnknownSignal(i32),
UnsupportedSignal {
signal: i32,
},
ListenAlreadyRunning,
WindowsFallbackAlreadyActive,
ListenerInit(String),
InjectorClosed,
ListenTimeout(Duration),
}Expand description
Errors returned by SignalManager operations.
Variants§
UnknownSignal(i32)
A signal number was not found in the catalog.
UnsupportedSignal
The signal is known but unsupported on this platform.
ListenAlreadyRunning
Listener cannot be started more than once at a time.
WindowsFallbackAlreadyActive
Windows fallback supports only one active listener per process.
ListenerInit(String)
Signal listener backend initialization failed.
InjectorClosed
Injection channel is closed.
ListenTimeout(Duration)
Timed out waiting for the listener to start.
Trait Implementations§
Source§impl Debug for SignalManagerError
impl Debug for SignalManagerError
Source§impl Display for SignalManagerError
impl Display for SignalManagerError
Source§impl Error for SignalManagerError
impl Error for SignalManagerError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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()
Auto Trait Implementations§
impl Freeze for SignalManagerError
impl RefUnwindSafe for SignalManagerError
impl Send for SignalManagerError
impl Sync for SignalManagerError
impl Unpin for SignalManagerError
impl UnsafeUnpin for SignalManagerError
impl UnwindSafe for SignalManagerError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more