pub struct SignalRuntime;Expand description
Utilities for process signal management.
Implementations§
Source§impl SignalRuntime
impl SignalRuntime
Sourcepub fn set_with(signals: &[i32]) -> Result<SignalSet, CoreError>
pub fn set_with(signals: &[i32]) -> Result<SignalSet, CoreError>
Create a signal set containing the specified signals.
Sourcepub fn block_current_thread(signals: &SignalSet) -> Result<SignalSet, CoreError>
pub fn block_current_thread(signals: &SignalSet) -> Result<SignalSet, CoreError>
Block the specified signals for the current thread and return the previous mask.
Sourcepub fn restore_current_thread(mask: &SignalSet) -> Result<(), CoreError>
pub fn restore_current_thread(mask: &SignalSet) -> Result<(), CoreError>
Restore the current thread signal mask.
Sourcepub fn wait(signals: &SignalSet) -> Result<i32, CoreError>
pub fn wait(signals: &SignalSet) -> Result<i32, CoreError>
Wait synchronously for one of the supplied signals.
Sourcepub fn interrupt_thread(thread: ThreadId, signal: i32) -> Result<(), CoreError>
pub fn interrupt_thread(thread: ThreadId, signal: i32) -> Result<(), CoreError>
Deliver a signal to a specific thread.
Sourcepub fn unblock_all() -> Result<(), CoreError>
pub fn unblock_all() -> Result<(), CoreError>
Unblock all signals for the current thread.
Auto Trait Implementations§
impl Freeze for SignalRuntime
impl RefUnwindSafe for SignalRuntime
impl Send for SignalRuntime
impl Sync for SignalRuntime
impl Unpin for SignalRuntime
impl UnsafeUnpin for SignalRuntime
impl UnwindSafe for SignalRuntime
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