pub enum SetHandlerError {
UnsafeSignal,
UnblockableSignal(SignalType),
RealTimeSignalOutOfBounds {
attempted: u32,
max: u32,
},
UnexpectedSystemCallFailure(Error),
}
Available on Unix and crate feature
signals
only.Expand description
The error produced when setting a signal handler fails.
Variants§
UnsafeSignal
An unsafe signal was attempted to be handled using set
instead of set_unsafe
.
UnblockableSignal(SignalType)
The signal which was attempted to be handled is not allowed to be handled by the POSIX specification. This can either be ForceSuspend
or Kill
.
RealTimeSignalOutOfBounds
The specified real-time signal is not available on this OS.
Fields
UnexpectedSystemCallFailure(Error)
An unexpected OS error ocurred during signal handler setup.
Trait Implementations§
Source§impl Debug for SetHandlerError
impl Debug for SetHandlerError
Source§impl Display for SetHandlerError
impl Display for SetHandlerError
Source§impl Error for SetHandlerError
impl Error for SetHandlerError
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 SetHandlerError
impl !RefUnwindSafe for SetHandlerError
impl Send for SetHandlerError
impl Sync for SetHandlerError
impl Unpin for SetHandlerError
impl !UnwindSafe for SetHandlerError
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