pub enum Error {
CreateSigset(Error),
SignalAlreadyBlocked(c_int),
CompareBlockedSignals(Error),
BlockSignal(Error),
RetrieveSignalMask(c_int),
UnblockSignal(Error),
ClearWaitPending(Error),
ClearGetPending(Error),
ClearCheckPending(Error),
}
Expand description
The error cases enumeration for signal handling.
Variants§
CreateSigset(Error)
Couldn’t create a sigset.
SignalAlreadyBlocked(c_int)
The wrapped signal has already been blocked.
CompareBlockedSignals(Error)
Failed to check if the requested signal is in the blocked set already.
BlockSignal(Error)
The signal could not be blocked.
RetrieveSignalMask(c_int)
The signal mask could not be retrieved.
UnblockSignal(Error)
The signal could not be unblocked.
ClearWaitPending(Error)
Failed to wait for given signal.
ClearGetPending(Error)
Failed to get pending signals.
ClearCheckPending(Error)
Failed to check if given signal is in the set of pending signals.
Trait Implementations§
impl Eq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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