pub struct Signal { /* private fields */ }
Available on crate feature
signal
only.Expand description
Signal struct
Implementations§
source§impl Signal
impl Signal
sourcepub fn signal(signum: i8, on: bool) -> Option<u32>
Available on crate feature irq
only.
pub fn signal(signum: i8, on: bool) -> Option<u32>
irq
only.Set signal signum: signal number, if signum < 0, just return current signal on: true: enable signal, false: disable signal
sourcepub fn sigaction(
signum: u8,
sigaction: Option<*const rx_sigaction>,
oldact: Option<*mut rx_sigaction>
)
pub fn sigaction( signum: u8, sigaction: Option<*const rx_sigaction>, oldact: Option<*mut rx_sigaction> )
Set signal action signum: signal number sigaction: signal action, if sigaction == None, call the handler
Auto Trait Implementations§
impl RefUnwindSafe for Signal
impl Send for Signal
impl Sync for Signal
impl Unpin for Signal
impl UnwindSafe for Signal
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